File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Makefile CI
33on :
44 push :
55 branches : [ master ]
6+ tags : [ '*' ]
67 pull_request :
78 branches : [ master ]
89
3233 name : pdlua-ubuntu
3334 path : build
3435
35- - name : release
36- uses : softprops/action-gh-release@v1
37- if : startsWith(github.ref, 'refs/tags/')
38- with :
39- prerelease : true
40- draft : true
41- files : pdlua-ubuntu
42-
4336 macos-build :
4437
4538 runs-on : macos-latest
6760 name : pdlua-macos
6861 path : build
6962
70- - name : release
71- uses : softprops/action-gh-release@v1
72- if : startsWith(github.ref, 'refs/tags/')
73- with :
74- prerelease : true
75- draft : true
76- files : pdlua-macos
77-
7863 windows-build :
7964
8065 runs-on : windows-2022
@@ -104,10 +89,21 @@ jobs:
10489 name : pdlua-windows
10590 path : build
10691
92+ # Big thanks to @tomara-x and @timothyschoen for showing me how to do this! -ag
93+
94+ release :
95+ if : startsWith(github.ref, 'refs/tags/')
96+ runs-on : ubuntu-latest
97+ needs : [ubuntu-build, macos-build, windows-build]
98+ steps :
99+ - uses : actions/download-artifact@v3
100+ - name : ziptie
101+ run : |
102+ mkdir dist
103+ for x in pdlua-*; do (cd $x && zip -r ../dist/$x.zip pdlua/); done
107104 - name : release
108105 uses : softprops/action-gh-release@v1
109- if : startsWith(github.ref, 'refs/tags/')
110106 with :
111107 prerelease : true
112108 draft : true
113- files : pdlua-windows
109+ files : dist/*.zip
You can’t perform that action at this time.
0 commit comments