mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-06-28 17:25:54 +08:00
39a95cc50d
- Rust: windows-latest 默认 MSVC,无需额外安装 GNU/MinGW - ESLint: 添加 eslint flat config(js + tseslint + react-hooks) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
33 lines
751 B
YAML
33 lines
751 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build-and-release:
|
|
name: 构建 NSIS 安装包并发布
|
|
runs-on: windows-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
|
|
- run: npm ci
|
|
|
|
- name: Tauri Build
|
|
run: npx tauri build
|
|
|
|
- name: 创建 Release 并上传安装包
|
|
run: |
|
|
$installer = Get-ChildItem -Path "src-tauri\target\release\bundle\nsis\*.exe" | Select-Object -First 1
|
|
gh release create $env:GITHUB_REF_NAME "$installer" --title "$env:GITHUB_REF_NAME" --generate-notes
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|