]>
Commit | Line | Data |
---|---|---|
1 | name: Release (nightly) | |
2 | on: | |
3 | push: | |
4 | branches: | |
5 | - master | |
6 | paths: | |
7 | - "yt_dlp/**.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 | secrets: | |
39 | GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} | |
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 | channel: nightly | |
50 | prerelease: true | |
51 | version: ${{ needs.prepare.outputs.version }} | |
52 | target_commitish: ${{ github.sha }} |