diff --git a/.github/workflows/test-OSW.yml b/.github/workflows/test-OSW.yml index ccfaf0cfa..31804224d 100644 --- a/.github/workflows/test-OSW.yml +++ b/.github/workflows/test-OSW.yml @@ -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