Skip to content

Commit 37c10a7

Browse files
committed
更新 Build MacOS Package.yml
1 parent d58ee0e commit 37c10a7

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/Build MacOS Package.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,16 @@ jobs:
5252
TAG=$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null || echo "1.0.0")
5353
echo "TAG=$TAG" >> $GITHUB_ENV
5454
55-
# Determine trigger type
56-
- name: Set trigger type
57-
run: |
58-
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
59-
echo "TRIGGER_TYPE=manual" >> $GITHUB_ENV
60-
else
61-
echo "TRIGGER_TYPE=tag" >> $GITHUB_ENV
62-
63-
# Conditional step for manual trigger
6455
- name: Upload Artifact
65-
if: env.TRIGGER_TYPE == 'manual'
56+
if: github.event_name == 'workflow_dispatch'
6657
uses: actions/upload-artifact@v4
6758
with:
6859
name: macos-package
6960
path: build/compose/binaries/main/dmg/*.dmg
7061

7162
# Create a Draft Release
7263
- name: Draft Release
73-
if: env.TRIGGER_TYPE == 'tag'
64+
if: github.event_name != 'workflow_dispatch'
7465
uses: ncipollo/release-action@v1
7566
with:
7667
draft: true

0 commit comments

Comments
 (0)