From 328f27511b0e2d5826824d07b7e9076c8a90794c Mon Sep 17 00:00:00 2001 From: William Ballenthin Date: Tue, 4 Aug 2020 12:04:15 -0600 Subject: [PATCH] ci: build standalone exe upon release --- .github/workflows/build.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 18ab6263..2a7ab015 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,8 @@ name: build on: - # TODO: change to "release" - push: - # TODO: change to `master - branches: [ fix-178 ] + release: [created, edited] + jobs: build: @@ -43,4 +41,11 @@ jobs: - uses: actions/upload-artifact@v2 with: name: ${{ matrix.asset_name }} - path: dist/${{ matrix.artifact_name }} \ No newline at end of file + path: dist/${{ matrix.artifact_name }} + - name: Upload binaries to GH Release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.CAPA_TOKEN }} + file: dist/${{ matrix.artifact_name }} + asset_name: ${{ matrix.asset_name }} + tag: ${{ github.ref }} \ No newline at end of file