1 # You'll need to setup the follwing environment variables:
2 # env.repo_nightly - The repository to release nightly builds to e.g. betaflight-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
5 # secrets.REPO_TOKEN - A GitHub token with permissions to push and publish releases to the nightly repo
8 repo_nightly: betaflight/betaflight-nightlies
10 This is an automated development build.
11 It may be unstable and result in craft loss or damage.
12 **Use only for testing.**
13 release_notes: This is a release build.
25 uses: ./.github/workflows/ci.yml
35 uses: actions/checkout@v3
37 - name: Fetch build artifacts
38 uses: actions/download-artifact@v3
40 - name: Select release notes
44 echo "notes=$(test -e "$1" && echo '${{ env.debug_release_notes }}' || echo '${{ env.release_notes }}')" >> $GITHUB_OUTPUT
46 - name: Get current date
48 run: echo "today=$(date '+%Y%m%d')" >> $GITHUB_OUTPUT
51 uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14
53 token: ${{ secrets.REPO_TOKEN }}
54 repository: ${{ env.repo_nightly }}
55 tag_name: v${{ steps.date.outputs.today }}.${{ github.run_number }}
59 fail_on_unmatched_files: true
61 ${{ steps.notes.outputs.notes }}
64 ${{ github.repository }} ([link](${{ github.event.repository.html_url }}))
67 ${{ github.ref_name }} ([link](${{ github.event.repository.html_url }}/tree/${{ github.ref_name }}))
70 ${{ github.event.head_commit.id }} ([link](${{ github.event.head_commit.url }}))
73 ${{ github.event.head_commit.message }}