Skip to content

Commit d787b8d

Browse files
committed
⚡️ 添加条件判断以控制调试和发布构建
1 parent 6b90dde commit d787b8d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/debug.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878

7979
# Build Debug
8080
- name: Build debug app
81+
if: github.event.inputs.build-debug == 'true'
8182
uses: tauri-apps/tauri-action@dev
8283
env:
8384
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -103,6 +104,7 @@ jobs:
103104
path: TeyvatGuide_${{ env.COMMIT_HASH }}_arm-debug.dmg
104105
# Build Release
105106
- name: Build app
107+
if: github.event.inputs.build-release == 'true'
106108
uses: tauri-apps/tauri-action@dev
107109
env:
108110
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)