workflows添加调试

This commit is contained in:
ACT丶流星雨 2026-04-05 11:15:45 +08:00
parent 9252eb4bea
commit c5803954c7

View File

@ -11,13 +11,19 @@ on:
required: false required: false
type: boolean type: boolean
default: false default: false
skipRelease:
description: "跳过发布(仅构建测试)"
required: false
type: boolean
default: false
env: env:
NODE_VERSION: "24" NODE_VERSION: "24"
SKIP_RELEASE: ${{ inputs.skipRelease || false }}
jobs: jobs:
# ==================== Windows 构建 ==================== # ==================== Windows 构建 ====================
构建-Windows: build-Windows:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -88,7 +94,7 @@ jobs:
retention-days: 30 retention-days: 30
# ==================== macOS 构建 ==================== # ==================== macOS 构建 ====================
构建-macOS: build-macOS:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -171,7 +177,7 @@ jobs:
retention-days: 30 retention-days: 30
# ==================== Linux 构建 ==================== # ==================== Linux 构建 ====================
构建-Linux: build-Linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: 构建 Linux (x64) name: 构建 Linux (x64)
@ -228,11 +234,11 @@ jobs:
retention-days: 30 retention-days: 30
# ==================== 发布 ==================== # ==================== 发布 ====================
发布: release:
needs: [构建-Windows, 构建-macOS, 构建-Linux] needs: [build-Windows, build-macOS, build-Linux]
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: 发布到 GitHub name: 发布到 GitHub
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/') && inputs.skipRelease != true
permissions: permissions:
contents: write contents: write