aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-04-05 22:48:53 +0200
committerGitHub <noreply@github.com>2023-04-05 22:48:53 +0200
commit3312741110b6536e8c01b75edd4bd8d640d40b8f (patch)
tree298820ec56d658abffea726402af8540cf319a81 /.github/workflows/release.yml
parentb4e68d085da69e68529720bd3faf1dd3ad369a74 (diff)
downloadFlightCore-3312741110b6536e8c01b75edd4bd8d640d40b8f.tar.gz
FlightCore-3312741110b6536e8c01b75edd4bd8d640d40b8f.zip
build: Generate release draft on tag (#256)
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml12
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