Update main.yml #13
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: 'publish' | |
on: | |
push: | |
branches: | |
- release | |
jobs: | |
publish-tauri: | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- platform: 'macos-13' | |
args: '--target universal-apple-darwin' | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v1 | |
- name: setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: ${{ matrix.platform == 'macos-13' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} | |
- name: install frontend dependencies | |
run: bun install | |
- uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAURI_PRIVATE_KEY: ${{ secrets.GITHUB_TAURI }} | |
with: | |
includeUpdaterJson: true | |
updaterJsonKeepUniversal: true | |
tagName: v__VERSION__ | |
releaseName: '🚀 Rocket v__VERSION__' | |
releaseBody: 'Welcome aboard! 🚀 Rocket v__VERSION__ is here!' | |
releaseDraft: true | |
prerelease: false | |
args: ${{ matrix.args }} |