v1.0.5 #11
Workflow file for this run
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' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | |
on: | |
release: | |
types: [created, edited] | |
# 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: | |
include: | |
- platform: 'windows-latest' | |
args: '' | |
# - platform: 'macos-latest' # for Arm based macs (M1 and above). | |
# args: '--target aarch64-apple-darwin' | |
# - platform: 'macos-latest' # for Intel based macs. | |
# args: '--target x86_64-apple-darwin' | |
# - platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04. | |
# args: '' | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: ${{ 'wasm32-unknown-unknown' }} | |
- name: Install Trunk | |
uses: jetli/trunk-action@v0.5.0 | |
with: | |
# Optional version of trunk to install(eg. 'v0.19.1', 'latest') | |
version: 'latest' | |
- name: Install frontend dependencies | |
run: yarn install # change this to npm, pnpm or bun depending on which one you use. | |
- uses: tauri-apps/tauri-action@v0.5.9 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. | |
releaseId: ${{ github.event.release.id }} | |
releaseBody: ${{ github.event.release.body }} | |
args: ${{ matrix.args }} | |
includeUpdaterJson: true |