openvpn-user/.github/workflows/release.yaml

27 lines
744 B
YAML
Raw Normal View History

2021-10-21 02:56:29 -04:00
name: Build and publish binaries (releases only)
on:
2021-02-13 07:33:10 -05:00
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
2021-02-14 05:18:57 -05:00
goos: [linux]
2021-02-13 07:33:10 -05:00
goarch: ["386", amd64]
steps:
2021-02-14 04:26:13 -05:00
- name: checkout code
uses: actions/checkout@v2
- name: build binaries
2022-05-23 09:33:16 -04:00
uses: wangyoucao577/go-release-action@v1.28
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-14 05:23:29 -05:00
binary_name: "openvpn-user"
2021-10-21 05:25:23 -04:00
asset_name: openvpn-user-${{ matrix.goos }}-${{ matrix.goarch }}