diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-08-27 23:19:38 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-08-27 23:19:38 +0200 |
commit | 48504e3e4d8a24cf4f42a07e472e4a6c40393bc6 (patch) | |
tree | e82f9ebfdce540d45bfce129563cbaf7b6d78a17 /.github/workflows | |
parent | f01751c3a9ada9ce3495b58cb4e0ce93a95be427 (diff) | |
download | FlightCore-48504e3e4d8a24cf4f42a07e472e4a6c40393bc6.tar.gz FlightCore-48504e3e4d8a24cf4f42a07e472e4a6c40393bc6.zip |
Publish release file as releasev0.0.5
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/push-test.yml | 20 | ||||
-rw-r--r-- | .github/workflows/release.yml | 36 |
2 files changed, 53 insertions, 3 deletions
diff --git a/.github/workflows/push-test.yml b/.github/workflows/push-test.yml index acbe18ed..04df933b 100644 --- a/.github/workflows/push-test.yml +++ b/.github/workflows/push-test.yml @@ -2,7 +2,21 @@ name: "test-on-push" on: [push, pull_request] 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 + + test-tauri: + needs: ensure-same-version strategy: fail-fast: false matrix: @@ -39,6 +53,6 @@ jobs: uses: actions/upload-artifact@v2 with: path: | - src-tauri/target/release/bundle/appimage/*.AppImage - src-tauri/target/release/bundle/deb/*.deb - src-tauri/target/release/bundle/msi/*.msi + src-tauri/target/release/bundle/appimage/* + src-tauri/target/release/bundle/deb/* + src-tauri/target/release/bundle/msi/* 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 |