1
1
Fork 0
mirror of https://github.com/mcuadros/ascode synced 2024-05-08 16:46:18 +02:00

ci: add release workflow

This commit is contained in:
Máximo Cuadros 2020-03-30 01:03:52 +02:00
parent 0f708d304c
commit e2a245a645
No known key found for this signature in database
GPG Key ID: 17A5DFEDC735AE4B

28
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Release
on:
release:
types:
- created
jobs:
release:
strategy:
fail-fast: false
matrix:
goos: [linux, windows, darwin]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set GO_LDFLAGS
run: |
echo ::set-env name=GO_LDFLAGS::$(make goldflags)
- name: Release binaries
uses: mcuadros/go-release-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: amd64
ldflags: ${{ env.GO_LDFLAGS }}