diff --git a/.github/workflows/tauri-build-upload-binaries.yaml b/.github/workflows/tauri-build-upload-binaries.yaml new file mode 100644 index 0000000..62c1b02 --- /dev/null +++ b/.github/workflows/tauri-build-upload-binaries.yaml @@ -0,0 +1,54 @@ +name: "publish" + +on: + push: + branches: + - dev + +# This workflow will trigger on each push to the `release` branch to create or update a GitHub release, build your app, and upload the artifacts to the release. + +jobs: + publish-tauri: + permissions: + contents: write + strategy: + fail-fast: false + matrix: + platform: [macos-latest, ubuntu-latest, windows-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Node.js setup + uses: actions/setup-node@v4 + with: + node-version: lts/* + + - name: Rust setup + id: toolchain + uses: dtolnay/rust-toolchain@stable + + - name: install dependencies (ubuntu only) + if: matrix.platform == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf + + - name: install frontend dependencies + run: npm install + + - uses: tauri-apps/tauri-action@v0 + name: tauri + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + releaseBody: "See the assets to download this version and install." + releaseDraft: true + prerelease: false + + - uses: actions/upload-artifact@v4 + with: + name: ${{matrix.platform}} + path: | + ${{ github.workspace }}/src-tauri/target/