Skip to content

Commit

Permalink
get release file name is now OS specific
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyTeichman committed Sep 16, 2024
1 parent 8444590 commit 5bbf864
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/pyinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
name: Create Release
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout repository
Expand Down Expand Up @@ -146,8 +144,12 @@ jobs:
- name: Get Release File Name & Upload URL
id: get_release_info
run: |
value=$(cat release_url/release_url.txt)
echo "UPLOAD_URL=$value" >> $GITHUB_ENV
if [[ "${{ runner.os }}" == "Windows" ]]; then
value=$(Get-Content release_url/release_url.txt)
echo "UPLOAD_URL=$value" >> $GITHUB_ENV
else
value=$(cat release_url/release_url.txt)
echo "UPLOAD_URL=$value" >> $GITHUB_ENV
- name: Upload Release Asset
id: upload-release-asset
Expand All @@ -156,4 +158,3 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ./dist/${{ matrix.OUT_FILE_NAME }}
name: ${{ matrix.OUT_FILE_NAME }}

0 comments on commit 5bbf864

Please sign in to comment.