From d9455d34ef98c5687d3af76231dcd494763e6354 Mon Sep 17 00:00:00 2001 From: Alexander van der Grinten Date: Sat, 29 May 2021 11:00:53 +0200 Subject: [PATCH] Publish static binaries on release --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b985c11..1ea9c57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}