aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-27 23:19:38 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-27 23:19:38 +0200
commit48504e3e4d8a24cf4f42a07e472e4a6c40393bc6 (patch)
treee82f9ebfdce540d45bfce129563cbaf7b6d78a17 /.github/workflows/release.yml
parentf01751c3a9ada9ce3495b58cb4e0ce93a95be427 (diff)
downloadFlightCore-48504e3e4d8a24cf4f42a07e472e4a6c40393bc6.tar.gz
FlightCore-48504e3e4d8a24cf4f42a07e472e4a6c40393bc6.zip
Publish release file as releasev0.0.5
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 09402c83..26e162b8 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -4,7 +4,20 @@ on:
types: [ created ]
jobs:
+ # Ensure version numbers in various places match up
+ ensure-same-version:
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+ - name: install dependencies
+ run: |
+ pip install toml
+ - name: Run check
+ run: |
+ python3 scripts/check_version_numbers.py --release ${{github.event.release.tag_name}}
+
build:
+ needs: ensure-same-version
strategy:
fail-fast: false
matrix:
@@ -37,6 +50,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
+ - name: upload build artifact
+ uses: actions/upload-artifact@v2
+ with:
+ path: |
+ src-tauri/target/release/bundle/appimage/*
+ src-tauri/target/release/bundle/deb/*
+ src-tauri/target/release/bundle/msi/*
- name: Release
uses: softprops/action-gh-release@v1
with:
@@ -44,3 +64,19 @@ jobs:
src-tauri/target/release/bundle/appimage/*
src-tauri/target/release/bundle/deb/*
src-tauri/target/release/bundle/msi/*
+
+ create-release-file:
+ needs: build
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v3
+ - name: Create release file
+ run: |
+ python3 scripts/create-release-file.py --version ${{github.event.release.tag_name}}
+
+ - name: upload release file
+ uses: softprops/action-gh-release@v1
+ with:
+ files: |
+ latest-release.json