Undo sha1 bootstrap, add extra files #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
- release | |
- v[0-9]* | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
tag_name: ${{ steps.release.outputs.tag_name }} | |
patch: ${{ steps.release.outputs.patch }} | |
steps: | |
# Create/update release PR | |
- uses: googleapis/release-please-action@v4 | |
id: release | |
with: | |
# Make sure we create the PR against the correct branch. | |
target-branch: ${{ github.ref_name }} | |
# Use a special shaka-bot access token for releases. | |
token: ${{ secrets.RELEASE_PLEASE_TOKEN }} | |
# See also settings in these files: | |
manifest-file: .release-please-manifest.json | |
config-file: .release-please-config.json | |
# The jobs below are all conditional on a release having been created by | |
# someone merging the release PR. They all run in parallel. | |
pypi: | |
runs-on: ubuntu-latest | |
needs: release | |
if: needs.release.outputs.release_created | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Set Python version | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.13 | |
- name: Install Python deps | |
run: | | |
sudo apt -y install twine | |
python3 -m pip install -r requirements.txt | |
python3 -m pip install -r optional_requirements.txt | |
- name: Publish main module | |
run: | | |
rm -rf build dist shaka_streamer.egg-info/ | |
python3 setup.py sdist bdist_wheel | |
python3 -m twine upload --repository testpypi dist/* | |
- name: Publish binaries module | |
run: | | |
rm -rf binaries/dist binaries/shaka_streamer_binaries.egg-info | |
rm -f binaries/streamer_binaries/{ffmpeg-*,ffprobe-*,packager-*} | |
python3 binaries/build_wheels.py | |
python3 -m twine upload --repository testpypi binaries/dist/* |