ci: build standalone exe upon release

This commit is contained in:
William Ballenthin
2020-08-04 12:04:15 -06:00
parent 9751c66565
commit 328f27511b

View File

@@ -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 }}
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 }}