2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - master
5
7
paths-ignore :
6
8
- ' *.md'
7
9
- ' *.yml'
20
22
echo "BUILD_TAG=$BUILD_TAG" >> $GITHUB_ENV
21
23
echo -n $BUILD_TAG > tag
22
24
- name : Upload artifacts
23
- uses : actions/upload-artifact@v2
25
+ uses : actions/upload-artifact@v4
24
26
with :
25
27
name : tag
26
28
path : tag
@@ -55,10 +57,12 @@ jobs:
55
57
run : |
56
58
mkdir artifacts
57
59
mv -vb build\${{ matrix.configuration }}\extract-xiso.exe, LICENSE.TXT artifacts
58
- - uses : actions/upload-artifact@v2
60
+ cd artifacts
61
+ powershell Compress-Archive . ../extract-xiso-${{ matrix.artifact_os }}_${{ matrix.configuration }}.zip
62
+ - uses : actions/upload-artifact@v4
59
63
with :
60
64
name : extract-xiso_${{ matrix.artifact_os }}_${{ matrix.configuration }}
61
- path : artifacts
65
+ path : extract-xiso-${{ matrix.artifact_os }}_${{ matrix.configuration }}.zip
62
66
63
67
build-linux :
64
68
runs-on : ubuntu-latest
@@ -76,10 +80,12 @@ jobs:
76
80
run : |
77
81
mkdir artifacts
78
82
mv -v build/extract-xiso LICENSE.TXT artifacts
79
- - uses : actions/upload-artifact@v2
83
+ cd artifacts
84
+ zip -r ../extract-xiso_${{ runner.os }}.zip *
85
+ - uses : actions/upload-artifact@v4
80
86
with :
81
87
name : extract-xiso_${{ runner.os }}
82
- path : artifacts
88
+ path : extract-xiso_${{ runner.os }}.zip
83
89
84
90
build-macos :
85
91
runs-on : macos-latest
@@ -97,105 +103,30 @@ jobs:
97
103
run : |
98
104
mkdir artifacts
99
105
mv -v build/extract-xiso LICENSE.TXT artifacts
100
- - uses : actions/upload-artifact@v2
106
+ cd artifacts
107
+ zip -r ../extract-xiso_${{ runner.os }}.zip *
108
+ - uses : actions/upload-artifact@v4
101
109
with :
102
110
name : extract-xiso_${{ runner.os }}
103
- path : artifacts
111
+ path : extract-xiso_${{ runner.os }}.zip
104
112
105
113
Release :
106
114
if : github.event_name == 'push' && github.ref == 'refs/heads/master'
107
115
runs-on : ubuntu-latest
108
116
needs : [build-windows, build-linux, build-macos]
109
- env :
110
- BUILD_TAG :
111
117
steps :
112
118
- name : Download artifacts
113
- uses : actions/download-artifact@v2
119
+ uses : actions/download-artifact@v4
114
120
with :
115
121
path : dist
116
- - name : Create archives
117
- run : |
118
- pushd dist/extract-xiso_Win32_Release
119
- zip -r ../extract-xiso-win32-release.zip *
120
- popd
121
- pushd dist/extract-xiso_Win32_Debug
122
- zip -r ../extract-xiso-win32-debug.zip *
123
- popd
124
- ###
125
- # Comment out 64 bit builds as they are currently broken
126
- ###
127
- # pushd dist/extract-xiso_Win64_Release
128
- # zip -r ../extract-xiso-win64-release.zip *
129
- # popd
130
- # pushd dist/extract-xiso_Win64_Debug
131
- # zip -r ../extract-xiso-win64-debug.zip *
132
- # popd
133
- # pushd dist/extract-xiso_macOS
134
- # zip -r ../extract-xiso-macos.zip *
135
- # popd
136
122
- name : Get package info
137
123
run : |
138
124
echo "BUILD_TAG=$(cat dist/tag/tag)" >> $GITHUB_ENV
139
125
- name : Create release
140
- id : create_release
141
- uses : actions/create-release@v1
142
- env :
143
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
126
+ uses : softprops/action-gh-release@v2
144
127
with :
145
128
tag_name : ${{ env.BUILD_TAG }}
146
- release_name : ${{ env.BUILD_TAG }}
147
- draft : false
129
+ name : ${{ env.BUILD_TAG }}
148
130
prerelease : false
149
- - name : Upload release assets (Win32 build)
150
- id : upload-release-assets-win32-release
151
-
152
- env :
153
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
154
- with :
155
- upload_url : ${{ steps.create_release.outputs.upload_url }}
156
- asset_name : extract-xiso-win32-release.zip
157
- asset_path : dist/extract-xiso-win32-release.zip
158
- asset_content_type : application/zip
159
- - name : Upload release assets (Win32 debug build)
160
- id : upload-release-assets-win32-debug
161
-
162
- env :
163
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
164
- with :
165
- upload_url : ${{ steps.create_release.outputs.upload_url }}
166
- asset_name : extract-xiso-win32-debug.zip
167
- asset_path : dist/extract-xiso-win32-debug.zip
168
- asset_content_type : application/zip
169
- # ##
170
- # Comment out 64 bit builds as they are currently broken
171
- # ##
172
- # - name: Upload release assets (Win64 build)
173
- # id: upload-release-assets-win64-release
174
-
175
- # env:
176
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
177
- # with:
178
- # upload_url: ${{ steps.create_release.outputs.upload_url }}
179
- # asset_name: extract-xiso-win64-release.zip
180
- # asset_path: dist/extract-xiso-win64-release.zip
181
- # asset_content_type: application/zip
182
- # - name: Upload release assets (Win64 debug build)
183
- # id: upload-release-assets-win64-debug
184
-
185
- # env:
186
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
187
- # with:
188
- # upload_url: ${{ steps.create_release.outputs.upload_url }}
189
- # asset_name: extract-xiso-win64-debug.zip
190
- # asset_path: dist/extract-xiso-win64-debug.zip
191
- # asset_content_type: application/zip
192
- # - name: Upload release assets (macOS build)
193
- # id: upload-release-assets-macos-release
194
-
195
- # env:
196
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
197
- # with:
198
- # upload_url: ${{ steps.create_release.outputs.upload_url }}
199
- # asset_name: extract-xiso-macos.zip
200
- # asset_path: dist/extract-xiso-macos.zip
201
- # asset_content_type: application/zip
131
+ draft : false
132
+ files : dist/*/*.zip
0 commit comments