Release Build #43
This file contains 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 Build | |
on: | |
workflow_dispatch: | |
jobs: | |
publish-tauri: | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- platform: macos-latest # ARM | |
args: --target aarch64-apple-darwin | |
- platform: macos-latest # Intel | |
args: --target x86_64-apple-darwin | |
- platform: ubuntu-22.04 | |
args: '' | |
- platform: windows-latest | |
args: '' | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: ./.github/actions/setup-rust | |
with: | |
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds. | |
target: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} | |
save-cache: true | |
restore-cache: true | |
- name: Setup Packages | |
uses: ./.github/actions/setup-packages | |
- uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tagName: onelauncher-__VERSION__ | |
releaseName: OneLauncher __VERSION__ | |
releaseDraft: true | |
prerelease: ${{ startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-alpha') || false }} | |
tauriScript: pnpm desktop | |
args: ${{ matrix.args }} |