From 79c8f0190cc61382735e85d29472a8e93c647926 Mon Sep 17 00:00:00 2001 From: "Aaron A. King" Date: Mon, 1 Apr 2024 08:26:45 -0400 Subject: [PATCH] automate release creation --- .github/workflows/binary-build.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/binary-build.yml b/.github/workflows/binary-build.yml index 38ba430..4824803 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/*/*"