Skip to content

Commit

Permalink
Improve release creation action
Browse files Browse the repository at this point in the history
  • Loading branch information
QCanvas committed Jul 22, 2024
1 parent e30e6ea commit d181075
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/build-appimage.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Create release
on:
push:
branches:
- "reborn"
tags:
- "v1.**"

Expand Down Expand Up @@ -34,13 +36,10 @@ jobs:
replacement-text: ${{github.ref_name}}
- name: Package AppImage
run: ./appimagetool appimage -u "gh-releases-zsync|QCanvas|QCanvasApp|latest|QCanvas-x86_64.AppImage.zsync"
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.PUBLISH_TOKEN }}
file: QCanvas-*
overwrite: true
file_glob: true
- name: Create release
run: gh release create ${{ github.ref_name }} --generate-notes
- name: Upload binaries
run: gh release ${{ github.ref_name }} QCanvas-* --clobber
build-windows:
name: Build PyInstaller Windows
runs-on: windows-latest
Expand All @@ -56,9 +55,7 @@ jobs:
- run: poetry update qcanvas-backend
- name: Build pyinstaller
run: poetry run pyinstaller --hidden-import aiosqlite --onefile -n QCanvas --icon windows/qcanvas.ico qcanvas/run.py --windowed
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.PUBLISH_TOKEN }}
file: dist/QCanvas.exe
overwrite: true
- name: Create release
run: gh release create ${{ github.ref_name }} --generate-notes
- name: Upload binaries
run: gh release ${{ github.ref_name }} dist/QCanvas.exe --clobber

0 comments on commit d181075

Please sign in to comment.