Skip to content

Commit

Permalink
automate release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
kingaa committed Apr 1, 2024
1 parent 740667e commit c8be1c2
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/binary-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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/*/*"

0 comments on commit c8be1c2

Please sign in to comment.