Skip to content

Commit

Permalink
Modified release workflow to prepare a zip file for download
Browse files Browse the repository at this point in the history
  • Loading branch information
yngwi committed Sep 25, 2024
1 parent a5a1acc commit 9bb453b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,19 @@ jobs:
run: |
pyinstaller --onefile --windowed --icon=resources/icon.ico --add-data "resources/icon.ico;resources" matricula-convert.py
- name: Package executable and README into zip
run: |
mkdir dist/package
copy dist\matricula-convert.exe dist\package\
copy README.md dist\package\
powershell -Command "Compress-Archive -Path dist/package/* -DestinationPath dist/matricula-convert.zip"
- name: Create GitHub Release
id: create_release
uses: ncipollo/release-action@v1
with:
tag: ${{ github.ref_name }}
name: ${{ github.ref_name }}
artifacts: dist/matricula-convert.exe
artifacts: dist/matricula-convert.zip
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: ${{ contains(github.ref_name, '-') }}

0 comments on commit 9bb453b

Please sign in to comment.