1
1
Fork 0
mirror of https://github.com/mcuadros/ascode synced 2024-05-09 00:56:14 +02:00
ascode/.github/workflows/release.yml
2021-04-06 16:21:40 +02:00

28 lines
594 B
YAML

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 "GO_LDFLAGS=$(make goldflags)" >> $GITHUB_ENV
- name: Release binaries
uses: mcuadros/go-release-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: amd64
ldflags: ${{ env.GO_LDFLAGS }}