mirror of
https://github.com/mcuadros/ascode
synced 2024-11-22 17:02:03 +01:00
ci: add release workflow
This commit is contained in:
parent
0f708d304c
commit
e2a245a645
28
.github/workflows/release.yml
vendored
Normal file
28
.github/workflows/release.yml
vendored
Normal 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 }}
|
Loading…
Reference in New Issue
Block a user