|
|
|
@ -65,6 +65,22 @@ jobs:
|
|
|
|
|
- name: Get SHA2-512SUMS for yt-dlp.tar.gz
|
|
|
|
|
id: sha512_tar
|
|
|
|
|
run: echo "::set-output name=sha512_tar::$(sha512sum yt-dlp.tar.gz | awk '{print $1}')"
|
|
|
|
|
- name: Install dependencies for pypi
|
|
|
|
|
env:
|
|
|
|
|
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
|
|
|
if: "env.PYPI_TOKEN != ''"
|
|
|
|
|
run: |
|
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
|
pip install setuptools wheel twine
|
|
|
|
|
- name: Build and publish on pypi
|
|
|
|
|
env:
|
|
|
|
|
TWINE_USERNAME: __token__
|
|
|
|
|
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
|
|
|
|
if: "env.TWINE_PASSWORD != ''"
|
|
|
|
|
run: |
|
|
|
|
|
rm -rf dist/*
|
|
|
|
|
python setup.py sdist bdist_wheel
|
|
|
|
|
twine upload dist/*
|
|
|
|
|
- name: Install SSH private key
|
|
|
|
|
env:
|
|
|
|
|
BREW_TOKEN: ${{ secrets.BREW_TOKEN }}
|
|
|
|
@ -83,22 +99,6 @@ jobs:
|
|
|
|
|
git -C taps/ config user.email github-actions@example.com
|
|
|
|
|
git -C taps/ commit -am 'yt-dlp: ${{ steps.bump_version.outputs.ytdlp_version }}'
|
|
|
|
|
git -C taps/ push
|
|
|
|
|
- name: Install dependencies for pypi
|
|
|
|
|
env:
|
|
|
|
|
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
|
|
|
if: "env.PYPI_TOKEN != ''"
|
|
|
|
|
run: |
|
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
|
pip install setuptools wheel twine
|
|
|
|
|
- name: Build and publish on pypi
|
|
|
|
|
env:
|
|
|
|
|
TWINE_USERNAME: __token__
|
|
|
|
|
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
|
|
|
|
if: "env.TWINE_PASSWORD != ''"
|
|
|
|
|
run: |
|
|
|
|
|
rm -rf dist/*
|
|
|
|
|
python setup.py sdist bdist_wheel
|
|
|
|
|
twine upload dist/*
|
|
|
|
|
- name: Create Release
|
|
|
|
|
id: create_release
|
|
|
|
|
uses: actions/create-release@v1
|
|
|
|
|