|
|
@ -7,7 +7,6 @@ on:
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
build_unix:
|
|
|
|
build_unix:
|
|
|
|
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
|
|
outputs:
|
|
|
|
outputs:
|
|
|
@ -44,7 +43,7 @@ jobs:
|
|
|
|
draft: false
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
|
|
|
prerelease: false
|
|
|
|
- name: Upload yt-dlp Unix binary
|
|
|
|
- name: Upload yt-dlp Unix binary
|
|
|
|
id: upload-release-asset
|
|
|
|
id: upload-release-asset
|
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
@ -74,14 +73,12 @@ jobs:
|
|
|
|
twine upload dist/*
|
|
|
|
twine upload dist/*
|
|
|
|
|
|
|
|
|
|
|
|
build_windows:
|
|
|
|
build_windows:
|
|
|
|
|
|
|
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
needs: build_unix
|
|
|
|
|
|
|
|
|
|
|
|
outputs:
|
|
|
|
outputs:
|
|
|
|
sha2_windows: ${{ steps.sha2_file_win.outputs.sha2_windows }}
|
|
|
|
sha2_windows: ${{ steps.sha2_file_win.outputs.sha2_windows }}
|
|
|
|
|
|
|
|
|
|
|
|
needs: build_unix
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
|
|
- name: Set up Python
|
|
|
@ -114,14 +111,12 @@ jobs:
|
|
|
|
run: echo "::set-output name=sha2_windows::$((Get-FileHash dist\yt-dlp.exe -Algorithm SHA256).Hash.ToLower())"
|
|
|
|
run: echo "::set-output name=sha2_windows::$((Get-FileHash dist\yt-dlp.exe -Algorithm SHA256).Hash.ToLower())"
|
|
|
|
|
|
|
|
|
|
|
|
build_windows32:
|
|
|
|
build_windows32:
|
|
|
|
|
|
|
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
needs: [build_unix, build_windows]
|
|
|
|
|
|
|
|
|
|
|
|
outputs:
|
|
|
|
outputs:
|
|
|
|
sha2_windows32: ${{ steps.sha2_file_win32.outputs.sha2_windows32 }}
|
|
|
|
sha2_windows32: ${{ steps.sha2_file_win32.outputs.sha2_windows32 }}
|
|
|
|
|
|
|
|
|
|
|
|
needs: [build_unix, build_windows]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python 3.4.4 32-Bit
|
|
|
|
- name: Set up Python 3.4.4 32-Bit
|
|
|
@ -153,10 +148,16 @@ jobs:
|
|
|
|
- name: Get SHA2-256SUMS for yt-dlp_x86.exe
|
|
|
|
- name: Get SHA2-256SUMS for yt-dlp_x86.exe
|
|
|
|
id: sha2_file_win32
|
|
|
|
id: sha2_file_win32
|
|
|
|
run: echo "::set-output name=sha2_windows32::$((Get-FileHash dist\yt-dlp_x86.exe -Algorithm SHA256).Hash.ToLower())"
|
|
|
|
run: echo "::set-output name=sha2_windows32::$((Get-FileHash dist\yt-dlp_x86.exe -Algorithm SHA256).Hash.ToLower())"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finish:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
needs: [build_unix, build_windows, build_windows32]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Make SHA2-256SUMS file
|
|
|
|
- name: Make SHA2-256SUMS file
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
SHA2_WINDOWS: ${{ needs.build_windows.outputs.sha2_windows }}
|
|
|
|
SHA2_WINDOWS: ${{ needs.build_windows.outputs.sha2_windows }}
|
|
|
|
SHA2_WINDOWS32: ${{ steps.sha2_file_win32.outputs.sha2_windows32 }}
|
|
|
|
SHA2_WINDOWS32: ${{ needs.build_windows32.outputs.sha2_windows32 }}
|
|
|
|
SHA2_UNIX: ${{ needs.build_unix.outputs.sha2_unix }}
|
|
|
|
SHA2_UNIX: ${{ needs.build_unix.outputs.sha2_unix }}
|
|
|
|
YTDLP_VERSION: ${{ needs.build_unix.outputs.ytdlp_version }}
|
|
|
|
YTDLP_VERSION: ${{ needs.build_unix.outputs.ytdlp_version }}
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
@ -164,7 +165,6 @@ jobs:
|
|
|
|
echo "yt-dlp.exe:${env:SHA2_WINDOWS}" >> SHA2-256SUMS
|
|
|
|
echo "yt-dlp.exe:${env:SHA2_WINDOWS}" >> SHA2-256SUMS
|
|
|
|
echo "yt-dlp_x86.exe:${env:SHA2_WINDOWS32}" >> SHA2-256SUMS
|
|
|
|
echo "yt-dlp_x86.exe:${env:SHA2_WINDOWS32}" >> SHA2-256SUMS
|
|
|
|
echo "yt-dlp:${env:SHA2_UNIX}" >> SHA2-256SUMS
|
|
|
|
echo "yt-dlp:${env:SHA2_UNIX}" >> SHA2-256SUMS
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload 256SUMS file
|
|
|
|
- name: Upload 256SUMS file
|
|
|
|
id: upload-sums
|
|
|
|
id: upload-sums
|
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
|