1
0
Fork 0
mirror of synced 2024-11-22 00:55:34 -05:00

Create release.yaml

This commit is contained in:
Ilya Sosnovsky 2021-02-13 15:33:10 +03:00 committed by GitHub
parent 4abbc1a308
commit e51ea15b39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

25
.github/workflows/release.yaml vendored Normal file
View file

@ -0,0 +1,25 @@
# .github/workflows/release.yaml
on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/386, darwin/amd64
goos: [linux, windows, darwin]
goarch: ["386", amd64]
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/go-release-action@v1.14
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
ldflags: '-linkmode external -extldflags "-static" -s -w'
binary_name: "ovenvpn-user"
asset_name: ovenvpn-user-${{ matrix.goos }}-${{ matrix.goarch }}.