From 0e93bcb0a0a74ec6e3d614d860262f4c1190d29f Mon Sep 17 00:00:00 2001 From: Stefan Kerkmann Date: Wed, 9 Nov 2022 09:06:14 +0100 Subject: [PATCH] Build Release with GitHub Actions --- .github/workflows/tauri-release.yml | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/tauri-release.yml diff --git a/.github/workflows/tauri-release.yml b/.github/workflows/tauri-release.yml new file mode 100644 index 0000000..64fbf68 --- /dev/null +++ b/.github/workflows/tauri-release.yml @@ -0,0 +1,47 @@ +name: Release +on: + push: + tags: + - 'v*' + workflow_dispatch: + +jobs: + release: + strategy: + fail-fast: false + matrix: + platform: [macos-latest, ubuntu-latest, windows-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Node.js setup + uses: actions/setup-node@v1 + with: + node-version: 16 + + - name: Rust setup + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Install dependencies (ubuntu only) + if: matrix.platform == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf + - name: Install app dependencies and build web + run: yarn && yarn build + + - name: Build the app + uses: tauri-apps/tauri-action@v0 + + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tagName: v__VERSION__ # tauri-action replaces \_\_VERSION\_\_ with the app version + releaseName: 'v__VERSION__' + releaseBody: 'See the assets to download this version and install.' + releaseDraft: true + prerelease: false