Skip to content

Commit

Permalink
Publish static binaries on release
Browse files Browse the repository at this point in the history
  • Loading branch information
avdgrinten committed May 29, 2021
1 parent d64ff03 commit d9455d3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,25 @@ jobs:
with:
name: cbuildrt-linux-x86_64
path: target/x86_64-unknown-linux-musl/release/cbuildrt

deploy:
name: Publish release
runs-on: ubuntu-20.04
if: "startsWith(github.ref, 'refs/tags/v')"
needs: build
steps:
- name: Fetch artifact
uses: actions/download-artifact@v2
with:
name: cbuildrt-linux-x86_64
path: linux-x86_64
- name: Prepare assets
run: |
tar -cf cbuildrt-linux-x86_64-static.tar -C linux-x86_64 cbuildrt
- name: Do release
uses: softprops/action-gh-release@v1
with:
files: |
cbuildrt-linux-x86_64-static.tar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d9455d3

Please sign in to comment.