Skip to content

Commit

Permalink
update upload asset
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdbalkhi committed Mar 14, 2023
1 parent 2f76bb1 commit 205d8ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ jobs:
- name: Build image
run: mkarchiso -v iso/
- name: Upload iso to the release
run: python tools/upload_assest.py
run: python tools/upload_asset.py

4 changes: 2 additions & 2 deletions tools/upload_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _compute_sha256(file_name):


_path = list(Path().cwd().glob("out/*.iso"))[0]
path = _path.posix_path()
path = _path.as_posix()

file_name = _path.name

Expand All @@ -43,7 +43,7 @@ def _compute_sha256(file_name):

gh = Github(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)

Expand Down

0 comments on commit 205d8ec

Please sign in to comment.