Skip to content

Commit

Permalink
refactor: Update build workflow to include separate specifications fo…
Browse files Browse the repository at this point in the history
…r Windows and Linux builds and improve artifact upload process
  • Loading branch information
alevilar committed Sep 9, 2024
1 parent 51301e6 commit 1efc829
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/desktop.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,16 @@ jobs:
draft: false
prerelease: false

- name: Set upload URL
run: echo "UPLOAD_URL=${{ steps.create_release.outputs.upload_url }}" >> $GITHUB_ENV

- name: Upload Windows executable to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/fiscalberry-win/fiscalberry-win.exe
upload_url: ${{ env.UPLOAD_URL }}
asset_path: ./artifacts/fiscalberry-win.exe
asset_name: fiscalberry-win.exe
asset_content_type: application/octet-stream

Expand All @@ -138,7 +141,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/fiscalberry-lin/fiscalberry-lin
upload_url: ${{ env.UPLOAD_URL }}
asset_path: ./artifacts/fiscalberry-lin
asset_name: fiscalberry-lin
asset_content_type: application/octet-stream

0 comments on commit 1efc829

Please sign in to comment.