Skip to content

Commit

Permalink
Workflows: release tag and upload assets (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmicro committed Aug 11, 2024
2 parents e0f2cb0 + 1748aa1 commit d159b7d
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/test-OSW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,22 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: firmwares
path: |
*.bin
path: "*.bin"

# 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"
draft: true
prerelease: true
generate_release_notes: true

0 comments on commit d159b7d

Please sign in to comment.