Skip to content

Commit

Permalink
workflow: create release workflow section
Browse files Browse the repository at this point in the history
Signed-off-by: Ruffalo Lavoisier <RuffaloLavoisier@gmail.com>
  • Loading branch information
RuffaloLavoisier committed Aug 11, 2024
1 parent 6d31b3e commit 6964237
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/test-OSW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,21 @@ jobs:
with:
name: firmwares
path: "*.bin"
- name: Release

# do this last step seperately to avoid race conditions with firmware upload
create-release:
runs-on: ubuntu-latest
needs: build-OSW
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
with:
pattern: "*.bin"
merge-multiple: true
- name: Create release and upload firmware to it
uses: softprops/action-gh-release@v2
with:
files: "*.bin"
files: "*.bin"
draft: true
prerelease: true
generate_release_notes: true
if: startsWith(github.ref, 'refs/tags/v')

0 comments on commit 6964237

Please sign in to comment.