mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-10-16 13:38:07 -07:00
* Bump docker/setup-qemu-action v4.2.0 => v4.4.0 * Bump github/codeql-action v4.37.7 => v4.38.2 * Bump zizmorcore/zizmor-action v0.6.2 => v0.6.4 * Use self-repository syntax in reusable workflow calls Authored by: bashonly, dlp-bot Co-authored-by: bashonly <bashonly@protonmail.com>
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: Release (master)
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "yt_dlp/**.py"
|
|
- "!yt_dlp/version.py"
|
|
- "bundle/**"
|
|
- "pyproject.toml"
|
|
- "Makefile"
|
|
- ".github/workflows/build.yml"
|
|
- ".github/workflows/release.yml"
|
|
- ".github/workflows/release-master.yml"
|
|
concurrency:
|
|
group: release-master
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
release:
|
|
name: Publish GitHub release
|
|
if: vars.BUILD_MASTER
|
|
permissions:
|
|
contents: write # May be needed to publish release
|
|
id-token: write # Needed for trusted publishing
|
|
uses: $/.github/workflows/release.yml
|
|
with:
|
|
prerelease: true
|
|
source: ${{ (github.repository != 'yt-dlp/yt-dlp' && vars.MASTER_ARCHIVE_REPO) || 'master' }}
|
|
target: 'master'
|
|
secrets:
|
|
ARCHIVE_REPO_TOKEN: ${{ secrets.ARCHIVE_REPO_TOKEN }}
|
|
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
|
|
|
|
publish_pypi:
|
|
name: Publish to PyPI
|
|
needs: [release]
|
|
if: vars.MASTER_PYPI_PROJECT
|
|
permissions:
|
|
id-token: write # Needed for trusted publishing
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Download artifacts
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
path: dist
|
|
name: build-pypi
|
|
- name: Publish to PyPI
|
|
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
|
|
with:
|
|
verbose: true
|