From e51ea15b394fe381cf87147f1485c3bb3bb792ef Mon Sep 17 00:00:00 2001 From: Ilya Sosnovsky Date: Sat, 13 Feb 2021 15:33:10 +0300 Subject: [PATCH] Create release.yaml --- .github/workflows/release.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..2a6b889 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 }}.