diff --git a/.github/workflows/binary-build.yml b/.github/workflows/binary-build.yml index 38ba430f..48248035 100644 --- a/.github/workflows/binary-build.yml +++ b/.github/workflows/binary-build.yml @@ -38,7 +38,7 @@ jobs: - uses: actions/upload-artifact@v4 with: - name: Source tarball + name: source_tarball path: ${{ github.workspace }}/artifacts/${{ env.release_name }}.tar.gz binary_build: @@ -78,3 +78,19 @@ jobs: with: name: ${{ matrix.config.os }}-${{ matrix.config.r }} path: ${{ github.workspace }}/artifacts/${{ env.release_name }}.${{ matrix.config.ext }} + +# Workflow derived from https://github.com/marketplace/actions/create-release + create_release: + needs: [ source_build, binary_build ] + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 + with: + path: artifacts + - uses: ncipollo/release-action@v1 + with: + draft: true + artifacts: "artifacts/*/*"