Skip to content

Publish Release

Publish Release #13

Workflow file for this run

name: Publish Release
on:
push:
tags:
- v*
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.7
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Restore Cargo dependencies
uses: actions/cache@v3
with:
path: |
~/src-tauri/.cargo/bin/
~/src-tauri/.cargo/registry/index/
~/src-tauri/.cargo/registry/cache/
~/src-tauri/.cargo/git/db/
~/src-tauri/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('src-tauri/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Install frontend dependencies
run: pnpm install --frozen-lockfile
- uses: tauri-apps/tauri-action@dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
# TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: v__VERSION__-beta
releaseBody: https://github.com/BTMuli/Tauri.Genshin/releases/tag/v__VERSION__
releaseDraft: true
prerelease: false