Add exit-race (Escape to leave) + bump to v0.1.1 #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: release | |
| # Push a version tag (e.g. v0.1.1) to build Windows + Linux + macOS and | |
| # publish them all to a GitHub Release, with an auto-update manifest. | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| permissions: | |
| contents: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: 'macos-latest' | |
| args: '--target universal-apple-darwin --bundles app,dmg' | |
| - platform: 'ubuntu-22.04' | |
| args: '--bundles appimage,deb' | |
| - platform: 'windows-latest' | |
| args: '--bundles nsis' | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} | |
| - name: Rust cache | |
| uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: './desktop/src-tauri -> target' | |
| - name: Install Linux dependencies | |
| if: matrix.platform == 'ubuntu-22.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf | |
| - name: Prepare frontend (copy the game into dist) | |
| shell: pwsh | |
| run: ./desktop/sync-dist.ps1 | |
| - name: Build and publish | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
| TAURI_SIGNING_PRIVATE_KEY_PASSWORD: '' | |
| with: | |
| projectPath: desktop | |
| tagName: ${{ github.ref_name }} | |
| releaseName: 'Rogue Racer ${{ github.ref_name }}' | |
| releaseBody: 'Automatic build. Download the installer for your OS below.' | |
| releaseDraft: false | |
| prerelease: false | |
| args: ${{ matrix.args }} |