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