@@ -2,11 +2,7 @@ name: release
22
33on :
44 push :
5- branches :
6- - ' *'
7- pull_request :
8- branches :
9- - ' *'
5+
106env :
117 CACHE_VERSION : 4
128 DEBIAN_FRONTEND : noninteractive
4541 with :
4642 name : jack2-macOS-intel-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
4743 path : PawPaw/jack2-macOS-*.tar.gz
44+ - uses : softprops/action-gh-release@v1
45+ if : startsWith(github.ref, 'refs/tags/')
46+ with :
47+ tag_name : ${{ github.ref_name }}
48+ name : ${{ github.ref_name }}
49+ draft : false
50+ prerelease : false
51+ files : |
52+ path: PawPaw/jack2-macOS-*.tar.gz
4853
4954 # macOS native universal build
5055 macos_universal :
8186 with :
8287 name : jack2-macOS-universal-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
8388 path : PawPaw/jack2-macOS-*.tar.gz
89+ - uses : softprops/action-gh-release@v1
90+ if : startsWith(github.ref, 'refs/tags/')
91+ with :
92+ tag_name : ${{ github.ref_name }}
93+ name : ${{ github.ref_name }}
94+ draft : false
95+ prerelease : false
96+ files : |
97+ path: PawPaw/jack2-macOS-*.tar.gz
8498
8599 # linux with win32 cross-compilation
86100 win32 :
@@ -130,6 +144,15 @@ jobs:
130144 with :
131145 name : jack2-win32-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
132146 path : PawPaw/jack2-win*.exe
147+ - uses : softprops/action-gh-release@v1
148+ if : startsWith(github.ref, 'refs/tags/')
149+ with :
150+ tag_name : ${{ github.ref_name }}
151+ name : ${{ github.ref_name }}
152+ draft : false
153+ prerelease : false
154+ files : |
155+ path: PawPaw/jack2-win*.exe
133156
134157 # linux with win64 cross-compilation
135158 win64 :
@@ -179,3 +202,12 @@ jobs:
179202 with :
180203 name : jack2-win64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
181204 path : PawPaw/jack2-win*.exe
205+ - uses : softprops/action-gh-release@v1
206+ if : startsWith(github.ref, 'refs/tags/')
207+ with :
208+ tag_name : ${{ github.ref_name }}
209+ name : ${{ github.ref_name }}
210+ draft : false
211+ prerelease : false
212+ files : |
213+ path: PawPaw/jack2-win*.exe
0 commit comments