0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-22 02:15:12 +00:00

[build] Reduce dependency on third party workflows

Closes #2194
This commit is contained in:
pukkandan 2022-01-01 14:22:43 +05:30
parent 8efffafa53
commit 767f999b53
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -96,7 +96,7 @@ jobs:
env: env:
BREW_TOKEN: ${{ secrets.BREW_TOKEN }} BREW_TOKEN: ${{ secrets.BREW_TOKEN }}
if: "env.BREW_TOKEN != ''" if: "env.BREW_TOKEN != ''"
uses: webfactory/ssh-agent@v0.5.3 uses: yt-dlp/ssh-agent@v0.5.3
with: with:
ssh-private-key: ${{ env.BREW_TOKEN }} ssh-private-key: ${{ env.BREW_TOKEN }}
- name: Update Homebrew Formulae - name: Update Homebrew Formulae
@ -192,11 +192,9 @@ jobs:
run: echo "::set-output name=sha512_macos::$(sha512sum dist/yt-dlp_macos | awk '{print $1}')" run: echo "::set-output name=sha512_macos::$(sha512sum dist/yt-dlp_macos | awk '{print $1}')"
- name: Run PyInstaller Script with --onedir - name: Run PyInstaller Script with --onedir
run: /usr/bin/python3 pyinst.py --target-architecture universal2 --onedir run: |
- uses: papeloto/action-zip@v1 /usr/bin/python3 pyinst.py --target-architecture universal2 --onedir
with: zip ./dist/yt-dlp_macos.zip ./dist/yt-dlp_macos
files: ./dist/yt-dlp_macos
dest: ./dist/yt-dlp_macos.zip
- name: Upload yt-dlp MacOS onedir - name: Upload yt-dlp MacOS onedir
id: upload-release-macos-zip id: upload-release-macos-zip
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
@ -265,11 +263,9 @@ jobs:
run: echo "::set-output name=sha512_win::$((Get-FileHash dist\yt-dlp.exe -Algorithm SHA512).Hash.ToLower())" run: echo "::set-output name=sha512_win::$((Get-FileHash dist\yt-dlp.exe -Algorithm SHA512).Hash.ToLower())"
- name: Run PyInstaller Script with --onedir - name: Run PyInstaller Script with --onedir
run: python pyinst.py --onedir run: |
- uses: papeloto/action-zip@v1 python pyinst.py --onedir
with: Compress-Archive -LiteralPath ./dist/yt-dlp -DestinationPath ./dist/yt-dlp_win.zip
files: ./dist/yt-dlp
dest: ./dist/yt-dlp_win.zip
- name: Upload yt-dlp Windows onedir - name: Upload yt-dlp Windows onedir
id: upload-release-windows-zip id: upload-release-windows-zip
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1