Update release.yaml
This commit is contained in:
parent
e8ad0ce1f4
commit
e768b89411
1 changed files with 8 additions and 3 deletions
11
.github/workflows/release.yaml
vendored
11
.github/workflows/release.yaml
vendored
|
@ -14,13 +14,18 @@ jobs:
|
||||||
goos: [linux, windows, darwin]
|
goos: [linux, windows, darwin]
|
||||||
goarch: ["386", amd64]
|
goarch: ["386", amd64]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: checkout code
|
||||||
- uses: wangyoucao577/go-release-action@v1.14
|
uses: actions/checkout@v2
|
||||||
|
- name: Get packages
|
||||||
|
uses: mstksg/get-package@v1
|
||||||
|
with:
|
||||||
|
apt-get: libsqlite3 gcc
|
||||||
|
- name: build binaries
|
||||||
|
uses: wangyoucao577/go-release-action@v1.14
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
goarch: ${{ matrix.goarch }}
|
goarch: ${{ matrix.goarch }}
|
||||||
ldflags: '-linkmode external -extldflags "-static" -s -w'
|
ldflags: '-linkmode external -extldflags "-static" -s -w'
|
||||||
pre_command: apt-get update && apt-get install -y libsqlite3 gcc
|
|
||||||
binary_name: "ovenvpn-user"
|
binary_name: "ovenvpn-user"
|
||||||
asset_name: ovenvpn-user-${{ matrix.goos }}-${{ matrix.goarch }}.
|
asset_name: ovenvpn-user-${{ matrix.goos }}-${{ matrix.goarch }}.
|
||||||
|
|
Loading…
Reference in a new issue