diff options
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r-- | .github/workflows/release.yml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 23c504aa..83c73342 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,11 @@ name: "release" on: - release: - types: [ created ] + push: + tags: + - 'v*' + +permissions: + contents: write # Needed to write to GitHub draft release jobs: # Ensure version numbers in various places match up @@ -76,6 +80,7 @@ jobs: - name: Release uses: softprops/action-gh-release@v1 with: + draft: true files: | src-tauri/target/release/bundle/appimage/*AppImage* src-tauri/target/release/bundle/msi/*msi* @@ -88,10 +93,11 @@ jobs: - uses: actions/download-artifact@v3 - name: Create release file run: | - python3 scripts/create-release-file.py --version ${{github.event.release.tag_name}} + python3 scripts/create-release-file.py --version ${{github.ref_name}} - name: upload release file uses: softprops/action-gh-release@v1 with: + draft: true files: | latest-release.json |