File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Build Release Package
1+ name : Release
22
33on :
44 push :
55 tags :
66 - ' v*'
77 workflow_dispatch :
88
9+ permissions :
10+ contents : write
11+
912jobs :
10- build :
13+ build-macos :
1114 runs-on : macos-latest
1215
1316 env :
6770 with :
6871 name : icon-maker-macos-arm64
6972 path : build/dist/mac-arm64/pack/*.dmg
73+
74+ release :
75+ name : Create GitHub Release Draft
76+ runs-on : macos-latest
77+ needs : [build-macos]
78+
79+ steps :
80+ - name : Download all artifacts
81+ uses : actions/download-artifact@v4
82+ with :
83+ # By default, this downloads artifacts from *all* jobs in the workflow
84+ # into subfolders named after artifact name.
85+ path : dist/
86+
87+ - name : Rename artifacts
88+ run : |
89+ mkdir -p dist/macos-arm64
90+ mv dist/icon-maker-macos-arm64/*.dmg dist/macos-arm64/
91+
92+ - name : Create GitHub Release draft
93+ uses : softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
94+ with :
95+ files : |
96+ dist/macos-arm64/*.dmg
97+ tag_name : ${{ github.ref_name }}
98+ name : " ${{ github.ref_name }}"
99+ draft : true
100+ - name : Check artifacts
101+ run : ls -R dist
You can’t perform that action at this time.
0 commit comments