]> jfr.im git - yt-dlp.git/blob - .github/workflows/release-nightly.yml
[build] Automated builds and nightly releases (#6220)
[yt-dlp.git] / .github / workflows / release-nightly.yml
1 name: Release (nightly)
2 on:
3 push:
4 branches:
5 - master
6 paths:
7 - "**.py"
8 - "!yt_dlp/version.py"
9 concurrency:
10 group: release-nightly
11 cancel-in-progress: true
12 permissions:
13 contents: read
14
15 jobs:
16 prepare:
17 if: vars.BUILD_NIGHTLY != ''
18 runs-on: ubuntu-latest
19 outputs:
20 version: ${{ steps.get_version.outputs.version }}
21
22 steps:
23 - uses: actions/checkout@v3
24 - name: Get version
25 id: get_version
26 run: |
27 python devscripts/update-version.py "$(date -u +"%H%M%S")" | grep -Po "version=\d+(\.\d+){3}" >> "$GITHUB_OUTPUT"
28
29 build:
30 needs: prepare
31 uses: ./.github/workflows/build.yml
32 with:
33 version: ${{ needs.prepare.outputs.version }}
34 channel: nightly
35 permissions:
36 contents: read
37 packages: write # For package cache
38
39 publish:
40 needs: [prepare, build]
41 uses: ./.github/workflows/publish.yml
42 secrets:
43 ARCHIVE_REPO_TOKEN: ${{ secrets.ARCHIVE_REPO_TOKEN }}
44 permissions:
45 contents: write
46 with:
47 nightly: true
48 version: ${{ needs.prepare.outputs.version }}
49 target_commitish: ${{ github.sha }}