release-master.yml 651 B

123456789101112131415161718192021222324252627282930
  1. name: Release (master)
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - "yt_dlp/**.py"
  8. - "!yt_dlp/version.py"
  9. - "bundle/*.py"
  10. - "pyproject.toml"
  11. - "Makefile"
  12. - ".github/workflows/build.yml"
  13. concurrency:
  14. group: release-master
  15. permissions:
  16. contents: read
  17. jobs:
  18. release:
  19. if: vars.BUILD_MASTER != ''
  20. uses: ./.github/workflows/release.yml
  21. with:
  22. prerelease: true
  23. source: master
  24. permissions:
  25. contents: write
  26. packages: write # For package cache
  27. actions: write # For cleaning up cache
  28. id-token: write # mandatory for trusted publishing
  29. secrets: inherit