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.
27 uses: ./.github/workflows/ci.yml
37 uses: actions/checkout@v2
39 - name: Fetch build artifacts
40 uses: actions/download-artifact@v2
42 - name: Select release notes
46 echo "::set-output name=notes::$(test -e "$1" && echo '${{ env.debug_release_notes }}' || echo '${{ env.release_notes }}')"
48 - name: Get current date
50 run: echo "::set-output name=today::$(date '+%Y%m%d')"
53 uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14
55 token: ${{ secrets.REPO_TOKEN }}
56 repository: ${{ env.repo_nightly }}
57 tag_name: v${{ steps.date.outputs.today }}.${{ github.run_number }}
61 fail_on_unmatched_files: true
63 ${{ steps.notes.outputs.notes }}
66 ${{ github.repository }} ([link](${{ github.event.repository.html_url }}))
69 ${{ github.ref_name }} ([link](${{ github.event.repository.html_url }}/tree/${{ github.ref_name }}))
72 ${{ github.event.head_commit.id }} ([link](${{ github.event.head_commit.url }}))
75 ${{ github.event.head_commit.message }}