]> jfr.im git - yt-dlp.git/blame - .github/workflows/build.yml
[build] Standalone x64 builds for MacOS 10.9 (#4106)
[yt-dlp.git] / .github / workflows / build.yml
CommitLineData
915f2a92 1name: Build
75b725a7 2on: workflow_dispatch
915f2a92
U
3
4jobs:
b5899f4f 5 create_release:
915f2a92 6 runs-on: ubuntu-latest
915f2a92 7 outputs:
75b725a7 8 version_suffix: ${{ steps.version_suffix.outputs.version_suffix }}
7a5c1cfe 9 ytdlp_version: ${{ steps.bump_version.outputs.ytdlp_version }}
915f2a92 10 upload_url: ${{ steps.create_release.outputs.upload_url }}
915f2a92
U
11 steps:
12 - uses: actions/checkout@v2
4c88ff87 13 with:
14 fetch-depth: 0
b5899f4f 15 - uses: actions/setup-python@v2
915f2a92 16 with:
b5899f4f 17 python-version: '3.10'
18
75b725a7 19 - name: Set version suffix
20 id: version_suffix
21 env:
22 PUSH_VERSION_COMMIT: ${{ secrets.PUSH_VERSION_COMMIT }}
23 if: "env.PUSH_VERSION_COMMIT == ''"
24 run: echo ::set-output name=version_suffix::$(date -u +"%H%M%S")
915f2a92
U
25 - name: Bump version
26 id: bump_version
4c88ff87 27 run: |
75b725a7 28 python devscripts/update-version.py ${{ steps.version_suffix.outputs.version_suffix }}
4c88ff87 29 make issuetemplates
b5899f4f 30
75b725a7 31 - name: Push to release
885fe351 32 id: push_release
4c88ff87 33 run: |
75b725a7 34 git config --global user.name github-actions
35 git config --global user.email github-actions@example.com
4c88ff87 36 git add -u
b5899f4f 37 git commit -m "[version] update" -m "Created by: ${{ github.event.sender.login }}" -m ":ci skip all :ci run dl"
75b725a7 38 git push origin --force ${{ github.event.ref }}:release
4c88ff87 39 echo ::set-output name=head_sha::$(git rev-parse HEAD)
75b725a7 40 - name: Update master
75b725a7 41 env:
42 PUSH_VERSION_COMMIT: ${{ secrets.PUSH_VERSION_COMMIT }}
43 if: "env.PUSH_VERSION_COMMIT != ''"
44 run: git push origin ${{ github.event.ref }}
4c88ff87 45 - name: Get Changelog
4c88ff87 46 run: |
64fa820c 47 changelog=$(grep -oPz '(?s)(?<=### ${{ steps.bump_version.outputs.ytdlp_version }}\n{2}).+?(?=\n{2,3}###)' Changelog.md) || true
4c88ff87 48 echo "changelog<<EOF" >> $GITHUB_ENV
49 echo "$changelog" >> $GITHUB_ENV
50 echo "EOF" >> $GITHUB_ENV
6e21fdd2 51
915f2a92
U
52 - name: Create Release
53 id: create_release
54 uses: actions/create-release@v1
55 env:
56 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57 with:
7a5c1cfe
P
58 tag_name: ${{ steps.bump_version.outputs.ytdlp_version }}
59 release_name: yt-dlp ${{ steps.bump_version.outputs.ytdlp_version }}
a804f6d8 60 commitish: ${{ steps.push_release.outputs.head_sha }}
915f2a92 61 body: |
0930b11f 62 #### [A description of the various files]((https://github.com/yt-dlp/yt-dlp#release-files)) are in the README
49a57e70 63
64 ---
65
0930b11f 66 ### Changelog:
67 ${{ env.changelog }}
915f2a92
U
68 draft: false
69 prerelease: false
b5899f4f 70
71
72 build_unix:
73 needs: create_release
e4afcfde 74 runs-on: ubuntu-18.04 # Standalone executable should be built on minimum supported OS
b5899f4f 75 outputs:
76 sha256_bin: ${{ steps.get_sha.outputs.sha256_bin }}
77 sha512_bin: ${{ steps.get_sha.outputs.sha512_bin }}
78 sha256_tar: ${{ steps.get_sha.outputs.sha256_tar }}
79 sha512_tar: ${{ steps.get_sha.outputs.sha512_tar }}
e4afcfde 80 sha256_linux: ${{ steps.get_sha.outputs.sha256_linux }}
81 sha512_linux: ${{ steps.get_sha.outputs.sha512_linux }}
82 sha256_linux_zip: ${{ steps.get_sha.outputs.sha256_linux_zip }}
83 sha512_linux_zip: ${{ steps.get_sha.outputs.sha512_linux_zip }}
b5899f4f 84
85 steps:
86 - uses: actions/checkout@v2
87 - uses: actions/setup-python@v2
88 with:
89 python-version: '3.10'
90 - name: Install Requirements
91 run: |
92 sudo apt-get -y install zip pandoc man
93 python -m pip install --upgrade pip setuptools wheel twine
94 python -m pip install Pyinstaller -r requirements.txt
95
96 - name: Prepare
97 run: |
98 python devscripts/update-version.py ${{ needs.create_release.outputs.version_suffix }}
99 python devscripts/make_lazy_extractors.py
e4afcfde 100 - name: Build Unix executables
b5899f4f 101 run: |
102 make all tar
e4afcfde 103 python pyinst.py --onedir
104 (cd ./dist/yt-dlp_linux && zip -r ../yt-dlp_linux.zip .)
105 python pyinst.py
b5899f4f 106 - name: Get SHA2-SUMS
107 id: get_sha
108 run: |
109 echo "::set-output name=sha256_bin::$(sha256sum yt-dlp | awk '{print $1}')"
110 echo "::set-output name=sha512_bin::$(sha512sum yt-dlp | awk '{print $1}')"
111 echo "::set-output name=sha256_tar::$(sha256sum yt-dlp.tar.gz | awk '{print $1}')"
112 echo "::set-output name=sha512_tar::$(sha512sum yt-dlp.tar.gz | awk '{print $1}')"
e4afcfde 113 echo "::set-output name=sha256_linux::$(sha256sum dist/yt-dlp_linux | awk '{print $1}')"
114 echo "::set-output name=sha512_linux::$(sha512sum dist/yt-dlp_linux | awk '{print $1}')"
115 echo "::set-output name=sha256_linux_zip::$(sha256sum dist/yt-dlp_linux.zip | awk '{print $1}')"
116 echo "::set-output name=sha512_linux_zip::$(sha512sum dist/yt-dlp_linux.zip | awk '{print $1}')"
b5899f4f 117
118 - name: Upload zip binary
915f2a92
U
119 uses: actions/upload-release-asset@v1
120 env:
121 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122 with:
b5899f4f 123 upload_url: ${{ needs.create_release.outputs.upload_url }}
7a5c1cfe
P
124 asset_path: ./yt-dlp
125 asset_name: yt-dlp
915f2a92 126 asset_content_type: application/octet-stream
ed64ce59 127 - name: Upload Source tar
128 uses: actions/upload-release-asset@v1
129 env:
130 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131 with:
b5899f4f 132 upload_url: ${{ needs.create_release.outputs.upload_url }}
ed64ce59 133 asset_path: ./yt-dlp.tar.gz
134 asset_name: yt-dlp.tar.gz
135 asset_content_type: application/gzip
e4afcfde 136 - name: Upload standalone binary
137 uses: actions/upload-release-asset@v1
138 env:
139 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140 with:
141 upload_url: ${{ needs.create_release.outputs.upload_url }}
142 asset_path: ./dist/yt-dlp_linux
143 asset_name: yt-dlp_linux
144 asset_content_type: application/octet-stream
145 - name: Upload onedir binary
146 uses: actions/upload-release-asset@v1
147 env:
148 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
149 with:
150 upload_url: ${{ needs.create_release.outputs.upload_url }}
151 asset_path: ./dist/yt-dlp_linux.zip
152 asset_name: yt-dlp_linux.zip
153 asset_content_type: application/zip
915f2a92 154
b5899f4f 155 - name: Build and publish on PyPi
156 env:
157 TWINE_USERNAME: __token__
158 TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
159 if: "env.TWINE_PASSWORD != ''"
160 run: |
161 rm -rf dist/*
162 python setup.py sdist bdist_wheel
163 twine upload dist/*
164
165 - name: Install SSH private key for Homebrew
166 env:
167 BREW_TOKEN: ${{ secrets.BREW_TOKEN }}
168 if: "env.BREW_TOKEN != ''"
169 uses: yt-dlp/ssh-agent@v0.5.3
170 with:
171 ssh-private-key: ${{ env.BREW_TOKEN }}
172 - name: Update Homebrew Formulae
173 env:
174 BREW_TOKEN: ${{ secrets.BREW_TOKEN }}
175 if: "env.BREW_TOKEN != ''"
176 run: |
177 git clone git@github.com:yt-dlp/homebrew-taps taps/
1ed70fd0 178 python devscripts/update-formulae.py taps/Formula/yt-dlp.rb "${{ needs.create_release.outputs.ytdlp_version }}"
b5899f4f 179 git -C taps/ config user.name github-actions
180 git -C taps/ config user.email github-actions@example.com
1ed70fd0 181 git -C taps/ commit -am 'yt-dlp: ${{ needs.create_release.outputs.ytdlp_version }}'
b5899f4f 182 git -C taps/ push
183
184
0e5927ee
R
185 build_macos:
186 runs-on: macos-11
b5899f4f 187 needs: create_release
0e5927ee 188 outputs:
b5899f4f 189 sha256_macos: ${{ steps.get_sha.outputs.sha256_macos }}
190 sha512_macos: ${{ steps.get_sha.outputs.sha512_macos }}
191 sha256_macos_zip: ${{ steps.get_sha.outputs.sha256_macos_zip }}
192 sha512_macos_zip: ${{ steps.get_sha.outputs.sha512_macos_zip }}
0e5927ee
R
193
194 steps:
195 - uses: actions/checkout@v2
b5899f4f 196 # NB: In order to create a universal2 application, the version of python3 in /usr/bin has to be used
0e5927ee
R
197 - name: Install Requirements
198 run: |
199 brew install coreutils
b5899f4f 200 /usr/bin/python3 -m pip install -U --user pip Pyinstaller -r requirements.txt
201
202 - name: Prepare
203 run: |
204 /usr/bin/python3 devscripts/update-version.py ${{ needs.create_release.outputs.version_suffix }}
205 /usr/bin/python3 devscripts/make_lazy_extractors.py
206 - name: Build
207 run: |
208 /usr/bin/python3 pyinst.py --target-architecture universal2 --onedir
209 (cd ./dist/yt-dlp_macos && zip -r ../yt-dlp_macos.zip .)
210 /usr/bin/python3 pyinst.py --target-architecture universal2
211 - name: Get SHA2-SUMS
212 id: get_sha
213 run: |
214 echo "::set-output name=sha256_macos::$(sha256sum dist/yt-dlp_macos | awk '{print $1}')"
215 echo "::set-output name=sha512_macos::$(sha512sum dist/yt-dlp_macos | awk '{print $1}')"
216 echo "::set-output name=sha256_macos_zip::$(sha256sum dist/yt-dlp_macos.zip | awk '{print $1}')"
217 echo "::set-output name=sha512_macos_zip::$(sha512sum dist/yt-dlp_macos.zip | awk '{print $1}')"
218
219 - name: Upload standalone binary
0e5927ee
R
220 uses: actions/upload-release-asset@v1
221 env:
222 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
223 with:
b5899f4f 224 upload_url: ${{ needs.create_release.outputs.upload_url }}
0e5927ee
R
225 asset_path: ./dist/yt-dlp_macos
226 asset_name: yt-dlp_macos
227 asset_content_type: application/octet-stream
b5899f4f 228 - name: Upload onedir binary
0e5927ee
R
229 uses: actions/upload-release-asset@v1
230 env:
231 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
232 with:
b5899f4f 233 upload_url: ${{ needs.create_release.outputs.upload_url }}
0e5927ee
R
234 asset_path: ./dist/yt-dlp_macos.zip
235 asset_name: yt-dlp_macos.zip
236 asset_content_type: application/zip
b5899f4f 237
0e5927ee 238
6d916fe7
SL
239 build_macos_legacy:
240 runs-on: macos-latest
241 needs: create_release
242 steps:
243 - uses: actions/checkout@v2
244 - name: Install Python
245 # We need the official Python, because the GA ones only support newer macOS versions
246 env:
247 PYTHON_VERSION: 3.10.5
248 MACOSX_DEPLOYMENT_TARGET: 10.9 # Used up by the Python build tools
249 run: |
250 # Hack to get the latest patch version. Uncomment if needed
251 #brew install python@3.10
252 #export PYTHON_VERSION=$( $(brew --prefix)/opt/python@3.10/bin/python3 --version | cut -d ' ' -f 2 )
253 curl https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-macos11.pkg -o "python.pkg"
254 sudo installer -pkg python.pkg -target /
255 python3 --version
256 - name: Install Requirements
257 run: |
258 brew install coreutils
259 python3 -m pip install -U --user pip Pyinstaller -r requirements.txt
260
261 - name: Prepare
262 run: |
263 python3 devscripts/update-version.py ${{ needs.create_release.outputs.version_suffix }}
264 python3 devscripts/make_lazy_extractors.py
265 - name: Build
266 run: |
267 python3 pyinst.py
268 - name: Get SHA2-SUMS
269 id: get_sha
270 run: |
271 echo "::set-output name=sha256_macos_legacy::$(sha256sum dist/yt-dlp_macos | awk '{print $1}')"
272 echo "::set-output name=sha512_macos_legacy::$(sha512sum dist/yt-dlp_macos | awk '{print $1}')"
273
274 - name: Upload standalone binary
275 uses: actions/upload-release-asset@v1
276 env:
277 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
278 with:
279 upload_url: ${{ needs.create_release.outputs.upload_url }}
280 asset_path: ./dist/yt-dlp_macos
281 asset_name: yt-dlp_macos_legacy
282 asset_content_type: application/octet-stream
283
284
7e8772bf 285 build_windows:
915f2a92 286 runs-on: windows-latest
b5899f4f 287 needs: create_release
47930b73 288 outputs:
b5899f4f 289 sha256_win: ${{ steps.get_sha.outputs.sha256_win }}
290 sha512_win: ${{ steps.get_sha.outputs.sha512_win }}
291 sha256_py2exe: ${{ steps.get_sha.outputs.sha256_py2exe }}
292 sha512_py2exe: ${{ steps.get_sha.outputs.sha512_py2exe }}
293 sha256_win_zip: ${{ steps.get_sha.outputs.sha256_win_zip }}
294 sha512_win_zip: ${{ steps.get_sha.outputs.sha512_win_zip }}
47930b73 295
915f2a92
U
296 steps:
297 - uses: actions/checkout@v2
b5899f4f 298 - uses: actions/setup-python@v2
299 with: # 3.8 is used for Win7 support
da8fb75d 300 python-version: '3.8'
915f2a92 301 - name: Install Requirements
b5899f4f 302 run: | # Custom pyinstaller built with https://github.com/yt-dlp/pyinstaller-builds
386cdfdb 303 python -m pip install --upgrade pip setuptools wheel py2exe
b46ccbc6 304 pip install "https://yt-dlp.github.io/Pyinstaller-Builds/x86_64/pyinstaller-4.10-py3-none-any.whl" -r requirements.txt
b5899f4f 305
306 - name: Prepare
307 run: |
308 python devscripts/update-version.py ${{ needs.create_release.outputs.version_suffix }}
309 python devscripts/make_lazy_extractors.py
310 - name: Build
311 run: |
312 python setup.py py2exe
313 Move-Item ./dist/yt-dlp.exe ./dist/yt-dlp_min.exe
314 python pyinst.py
315 python pyinst.py --onedir
316 Compress-Archive -Path ./dist/yt-dlp/* -DestinationPath ./dist/yt-dlp_win.zip
317 - name: Get SHA2-SUMS
318 id: get_sha
319 run: |
320 echo "::set-output name=sha256_py2exe::$((Get-FileHash dist\yt-dlp_min.exe -Algorithm SHA256).Hash.ToLower())"
321 echo "::set-output name=sha512_py2exe::$((Get-FileHash dist\yt-dlp_min.exe -Algorithm SHA512).Hash.ToLower())"
322 echo "::set-output name=sha256_win::$((Get-FileHash dist\yt-dlp.exe -Algorithm SHA256).Hash.ToLower())"
323 echo "::set-output name=sha512_win::$((Get-FileHash dist\yt-dlp.exe -Algorithm SHA512).Hash.ToLower())"
324 echo "::set-output name=sha256_win_zip::$((Get-FileHash dist\yt-dlp_win.zip -Algorithm SHA256).Hash.ToLower())"
325 echo "::set-output name=sha512_win_zip::$((Get-FileHash dist\yt-dlp_win.zip -Algorithm SHA512).Hash.ToLower())"
326
327 - name: Upload py2exe binary
328 uses: actions/upload-release-asset@v1
75b725a7 329 env:
b5899f4f 330 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
331 with:
332 upload_url: ${{ needs.create_release.outputs.upload_url }}
333 asset_path: ./dist/yt-dlp_min.exe
334 asset_name: yt-dlp_min.exe
335 asset_content_type: application/vnd.microsoft.portable-executable
336 - name: Upload standalone binary
915f2a92
U
337 uses: actions/upload-release-asset@v1
338 env:
339 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
340 with:
b5899f4f 341 upload_url: ${{ needs.create_release.outputs.upload_url }}
7a5c1cfe
P
342 asset_path: ./dist/yt-dlp.exe
343 asset_name: yt-dlp.exe
98918847 344 asset_content_type: application/vnd.microsoft.portable-executable
b5899f4f 345 - name: Upload onedir binary
4c88ff87 346 uses: actions/upload-release-asset@v1
347 env:
348 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
349 with:
b5899f4f 350 upload_url: ${{ needs.create_release.outputs.upload_url }}
0e5927ee
R
351 asset_path: ./dist/yt-dlp_win.zip
352 asset_name: yt-dlp_win.zip
4c88ff87 353 asset_content_type: application/zip
b5899f4f 354
386cdfdb 355
915f2a92 356 build_windows32:
915f2a92 357 runs-on: windows-latest
b5899f4f 358 needs: create_release
47930b73 359 outputs:
b5899f4f 360 sha256_win32: ${{ steps.get_sha.outputs.sha256_win32 }}
361 sha512_win32: ${{ steps.get_sha.outputs.sha512_win32 }}
47930b73 362
915f2a92
U
363 steps:
364 - uses: actions/checkout@v2
b5899f4f 365 - uses: actions/setup-python@v2
366 with: # 3.7 is used for Vista support. See https://github.com/yt-dlp/yt-dlp/issues/390
0181adef 367 python-version: '3.7'
915f2a92 368 architecture: 'x86'
0181adef 369 - name: Install Requirements
0e5927ee
R
370 run: |
371 python -m pip install --upgrade pip setuptools wheel
b46ccbc6 372 pip install "https://yt-dlp.github.io/Pyinstaller-Builds/i686/pyinstaller-4.10-py3-none-any.whl" -r requirements.txt
b5899f4f 373
374 - name: Prepare
375 run: |
376 python devscripts/update-version.py ${{ needs.create_release.outputs.version_suffix }}
377 python devscripts/make_lazy_extractors.py
378 - name: Build
379 run: |
380 python pyinst.py
381 - name: Get SHA2-SUMS
382 id: get_sha
383 run: |
384 echo "::set-output name=sha256_win32::$((Get-FileHash dist\yt-dlp_x86.exe -Algorithm SHA256).Hash.ToLower())"
385 echo "::set-output name=sha512_win32::$((Get-FileHash dist\yt-dlp_x86.exe -Algorithm SHA512).Hash.ToLower())"
386
387 - name: Upload standalone binary
915f2a92
U
388 uses: actions/upload-release-asset@v1
389 env:
390 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
391 with:
b5899f4f 392 upload_url: ${{ needs.create_release.outputs.upload_url }}
7a5c1cfe
P
393 asset_path: ./dist/yt-dlp_x86.exe
394 asset_name: yt-dlp_x86.exe
98918847 395 asset_content_type: application/vnd.microsoft.portable-executable
b5899f4f 396
14b17a55 397
398 finish:
399 runs-on: ubuntu-latest
6d916fe7 400 needs: [create_release, build_unix, build_windows, build_windows32, build_macos, build_macos_legacy]
14b17a55 401
402 steps:
b5899f4f 403 - name: Make SHA2-SUMS files
915f2a92 404 run: |
b5899f4f 405 echo "${{ needs.build_unix.outputs.sha256_bin }} yt-dlp" >> SHA2-256SUMS
406 echo "${{ needs.build_unix.outputs.sha256_tar }} yt-dlp.tar.gz" >> SHA2-256SUMS
e4afcfde 407 echo "${{ needs.build_unix.outputs.sha256_linux }} yt-dlp_linux" >> SHA2-256SUMS
408 echo "${{ needs.build_unix.outputs.sha256_linux_zip }} yt-dlp_linux.zip" >> SHA2-256SUMS
b5899f4f 409 echo "${{ needs.build_windows.outputs.sha256_win }} yt-dlp.exe" >> SHA2-256SUMS
410 echo "${{ needs.build_windows.outputs.sha256_py2exe }} yt-dlp_min.exe" >> SHA2-256SUMS
411 echo "${{ needs.build_windows32.outputs.sha256_win32 }} yt-dlp_x86.exe" >> SHA2-256SUMS
412 echo "${{ needs.build_windows.outputs.sha256_win_zip }} yt-dlp_win.zip" >> SHA2-256SUMS
413 echo "${{ needs.build_macos.outputs.sha256_macos }} yt-dlp_macos" >> SHA2-256SUMS
414 echo "${{ needs.build_macos.outputs.sha256_macos_zip }} yt-dlp_macos.zip" >> SHA2-256SUMS
6d916fe7 415 echo "${{ needs.build_macos_legacy.outputs.sha256_macos_legacy }} yt-dlp_macos_legacy" >> SHA2-256SUMS
b5899f4f 416 echo "${{ needs.build_unix.outputs.sha512_bin }} yt-dlp" >> SHA2-512SUMS
417 echo "${{ needs.build_unix.outputs.sha512_tar }} yt-dlp.tar.gz" >> SHA2-512SUMS
e4afcfde 418 echo "${{ needs.build_unix.outputs.sha512_linux }} yt-dlp_linux" >> SHA2-512SUMS
419 echo "${{ needs.build_unix.outputs.sha512_linux_zip }} yt-dlp_linux.zip" >> SHA2-512SUMS
b5899f4f 420 echo "${{ needs.build_windows.outputs.sha512_win }} yt-dlp.exe" >> SHA2-512SUMS
421 echo "${{ needs.build_windows.outputs.sha512_py2exe }} yt-dlp_min.exe" >> SHA2-512SUMS
422 echo "${{ needs.build_windows32.outputs.sha512_win32 }} yt-dlp_x86.exe" >> SHA2-512SUMS
423 echo "${{ needs.build_windows.outputs.sha512_win_zip }} yt-dlp_win.zip" >> SHA2-512SUMS
424 echo "${{ needs.build_macos.outputs.sha512_macos }} yt-dlp_macos" >> SHA2-512SUMS
425 echo "${{ needs.build_macos.outputs.sha512_macos_zip }} yt-dlp_macos.zip" >> SHA2-512SUMS
6d916fe7 426 echo "${{ needs.build_macos_legacy.outputs.sha512_macos_legacy }} yt-dlp_macos_legacy" >> SHA2-512SUMS
b5899f4f 427
428 - name: Upload SHA2-256SUMS file
da6403d3
TOH
429 uses: actions/upload-release-asset@v1
430 env:
431 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
432 with:
b5899f4f 433 upload_url: ${{ needs.create_release.outputs.upload_url }}
da6403d3
TOH
434 asset_path: ./SHA2-256SUMS
435 asset_name: SHA2-256SUMS
436 asset_content_type: text/plain
b5899f4f 437 - name: Upload SHA2-512SUMS file
beb982be
NA
438 uses: actions/upload-release-asset@v1
439 env:
440 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
441 with:
b5899f4f 442 upload_url: ${{ needs.create_release.outputs.upload_url }}
beb982be
NA
443 asset_path: ./SHA2-512SUMS
444 asset_name: SHA2-512SUMS
445 asset_content_type: text/plain