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