Skip to content

发布更新

发布更新 #3

Workflow file for this run

name: 发布更新
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
sync-latest-branch:
name: 同步 latest 分支
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
git checkout -b latest origin/latest
git merge --ff-only origin/main
git push origin latest
release: # https://tauri.app/v1/guides/building/cross-platform/#example-workflow
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install
- run: pnpm web:build
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref_name }}
releaseName: 'v__VERSION__'
releaseBody: 'See the assets to download and install this version.'
releaseDraft: true
prerelease: false