update upload asset

This commit is contained in:
komeil Parseh 2023-03-08 18:10:00 +03:30
parent 2f76bb1176
commit 205d8ecb70
No known key found for this signature in database
GPG key ID: 1928AF673B1C4255
2 changed files with 4 additions and 3 deletions

View file

@ -24,4 +24,5 @@ jobs:
- name: Build image - name: Build image
run: mkarchiso -v iso/ run: mkarchiso -v iso/
- name: Upload iso to the release - name: Upload iso to the release
run: python tools/upload_assest.py run: python tools/upload_asset.py

View file

@ -22,7 +22,7 @@ def _compute_sha256(file_name):
_path = list(Path().cwd().glob("out/*.iso"))[0] _path = list(Path().cwd().glob("out/*.iso"))[0]
path = _path.posix_path() path = _path.as_posix()
file_name = _path.name file_name = _path.name
@ -43,7 +43,7 @@ if not (repo_name and api_key and release_name):
gh = Github(api_key) gh = Github(api_key)
print(repo_name, api_key) print(repo_name, api_key)
repo = gh.get_repo(f"parchlinux/parch-iso-cinnamon") repo = gh.get_repo(f"parchlinux/{repo_name}")
release = repo.get_release(release_name) release = repo.get_release(release_name)