Skip to content

Commit

Permalink
Merge pull request #84 from lightningrodlabs/ci/publish-artifacts-to-…
Browse files Browse the repository at this point in the history
…gh-release

ci: create draft release, then build binaries and add to release
  • Loading branch information
mattyg authored Jan 23, 2025
2 parents 426ad1e + 3d000f3 commit 1a30c9f
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,22 @@ on:
- "*"

jobs:
create-release:
permissions: write-all
runs-on: ubuntu-latest
outputs:
releaseId: ${{ steps.step1.outputs.id }}
steps:
- id: step1
uses: ncipollo/release-action@v1
with:
name: "${{ github.ref_name }}"
body: ""
prerelease: true
draft: true

build:
needs: create-release
strategy:
matrix:
include:
Expand Down Expand Up @@ -65,7 +80,8 @@ jobs:
fi
shell: bash
- name: Upload Release Asset
uses: actions/upload-artifact@v3
uses: AButler/upload-release-assets@v3.0
with:
name: holochain-runner-${{ matrix.target }}.tar.gz
path: holochain-runner-${{ matrix.target }}.tar.gz
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-id: ${{ needs.create-release.outputs.releaseId }}
files: holochain-runner-${{ matrix.target }}.tar.gz

0 comments on commit 1a30c9f

Please sign in to comment.