| 1 | # Nightly pre-release of main (.github/scripts/nightly.py): tags v<next minor>.0-nightly.<UTC yyyymmddhhmm> |
| 2 | # and dispatches build.yml for that tag, which publishes it as a pre-release. Skips a day without commits |
| 3 | # and keeps the newest seven nightlies. |
| 4 | name: Nightly |
| 5 | |
| 6 | on: |
| 7 | schedule: |
| 8 | - cron: "23 2 * * *" |
| 9 | workflow_dispatch: |
| 10 | |
| 11 | permissions: |
| 12 | actions: write |
| 13 | contents: write |
| 14 | |
| 15 | concurrency: |
| 16 | group: nightly |
| 17 | cancel-in-progress: false |
| 18 | |
| 19 | jobs: |
| 20 | nightly: |
| 21 | runs-on: ubuntu-latest |
| 22 | timeout-minutes: 10 |
| 23 | steps: |
| 24 | - uses: actions/checkout@v6 |
| 25 | with: |
| 26 | ref: main |
| 27 | fetch-depth: 0 |
| 28 | |
| 29 | - name: Tag and build |
| 30 | env: |
| 31 | GH_TOKEN: ${{ github.token }} |
| 32 | run: python3 -I .github/scripts/nightly.py |