]> jfr.im git - yt-dlp.git/blame - .github/workflows/release-nightly.yml
[build] Sign SHA files and release public key
[yt-dlp.git] / .github / workflows / release-nightly.yml
CommitLineData
29cb20bd
SS
1name: Release (nightly)
2on:
3 push:
4 branches:
5 - master
6 paths:
7 - "**.py"
8 - "!yt_dlp/version.py"
9concurrency:
10 group: release-nightly
11 cancel-in-progress: true
12permissions:
13 contents: read
14
15jobs:
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
12647e03
SS
38 secrets:
39 GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
29cb20bd
SS
40
41 publish:
42 needs: [prepare, build]
43 uses: ./.github/workflows/publish.yml
44 secrets:
45 ARCHIVE_REPO_TOKEN: ${{ secrets.ARCHIVE_REPO_TOKEN }}
46 permissions:
47 contents: write
48 with:
49 nightly: true
50 version: ${{ needs.prepare.outputs.version }}
51 target_commitish: ${{ github.sha }}