File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -52,25 +52,16 @@ jobs:
52
52
TAG=$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null || echo "1.0.0")
53
53
echo "TAG=$TAG" >> $GITHUB_ENV
54
54
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
64
55
- name : Upload Artifact
65
- if : env.TRIGGER_TYPE == 'manual '
56
+ if : github.event_name == 'workflow_dispatch '
66
57
uses : actions/upload-artifact@v4
67
58
with :
68
59
name : macos-package
69
60
path : build/compose/binaries/main/dmg/*.dmg
70
61
71
62
# Create a Draft Release
72
63
- name : Draft Release
73
- if : env.TRIGGER_TYPE == 'tag '
64
+ if : github.event_name != 'workflow_dispatch '
74
65
uses : ncipollo/release-action@v1
75
66
with :
76
67
draft : true
You can’t perform that action at this time.
0 commit comments