|
1 | 1 | # You'll need to setup the follwing environment variables: |
2 | | -# env.repoNightly - The repository to release nightly builds to e.g. betaflight-configurator-nightly |
3 | | -# env.releaseNotes - The release notes to be published as part of the github release |
| 2 | +# env.repo_nightly - The repository to release nightly builds to e.g. betaflight-configurator-nightly |
| 3 | +# env.release_notes - The release notes to be published as part of the github release |
| 4 | +# env.debug_release_notes - The release notes to be published as part of the github debug release |
4 | 5 | # secrets.REPO_TOKEN - A GitHub token with permissions to push and publish releases to the nightly repo |
5 | 6 |
|
6 | 7 | env: |
7 | | - repoNightly: betaflight/betaflight-configurator-nightlies |
8 | | - debugReleaseNotes: > |
| 8 | + repo_nightly: betaflight/betaflight-configurator-nightlies |
| 9 | + debug_release_notes: > |
9 | 10 | This is an automated development build. |
10 | 11 | It may be unstable and result in corrupted configurations or data loss. |
11 | 12 | **Use only for testing.** |
12 | | - releaseNotes: This is a release build. It does not contain the debug console. |
| 13 | + release_notes: This is a release build. It does not contain the debug console. |
13 | 14 |
|
14 | 15 | name: Nightly |
15 | 16 |
|
|
23 | 24 | ci: |
24 | 25 | name: CI |
25 | 26 | uses: ./.github/workflows/ci.yml |
| 27 | + with: |
| 28 | + debug_build: true |
26 | 29 |
|
27 | 30 | release: |
28 | | - name: Release |
| 31 | + name: Nightly release |
29 | 32 | needs: ci |
30 | 33 | runs-on: ubuntu-20.04 |
31 | 34 | steps: |
|
38 | 41 | id: notes |
39 | 42 | run: | |
40 | 43 | set -- release-assets/Betaflight-Configurator-Debug-* |
41 | | - echo "::set-output name=notes::$(test -e "$1" && echo '${{ env.debugReleaseNotes }}' || echo '${{ env.releaseNotes }}')" |
| 44 | + echo "::set-output name=notes::$(test -e "$1" && echo '${{ env.debug_release_notes }}' || echo '${{ env.release_n |
| 45 | + otes }}')" |
42 | 46 |
|
43 | 47 | - name: Get current date |
44 | 48 | id: date |
|
48 | 52 | uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14 |
49 | 53 | with: |
50 | 54 | token: ${{ secrets.REPO_TOKEN }} |
51 | | - repository: ${{ env.repoNightly }} |
| 55 | + repository: ${{ env.repo_nightly }} |
52 | 56 | tag_name: v${{ steps.date.outputs.today }}.${{ github.run_number }} |
53 | 57 | files: release-assets/Betaflight-Configurator-*/** |
54 | 58 | draft: false |
|
0 commit comments