1
0
Fork 0
mirror of synced 2024-05-27 04:21:14 -04:00
openvpn-user/.github/workflows/release.yaml

29 lines
867 B
YAML
Raw Normal View History

2021-02-13 07:33:10 -05:00
# .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:
2021-02-14 04:26:13 -05:00
- name: checkout code
uses: actions/checkout@v2
- name: build binaries
uses: wangyoucao577/go-release-action@v1.14
2021-02-13 07:33:10 -05:00
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
ldflags: '-linkmode external -extldflags "-static" -s -w'
2021-02-14 05:11:10 -05:00
pre_command: bash ./install-deps.sh
2021-02-13 07:33:10 -05:00
binary_name: "ovenvpn-user"
asset_name: ovenvpn-user-${{ matrix.goos }}-${{ matrix.goarch }}.