Update release.yaml

This commit is contained in:
Ilya Sosnovsky 2021-02-14 12:26:13 +03:00 committed by GitHub
parent e8ad0ce1f4
commit e768b89411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -14,13 +14,18 @@ jobs:
goos: [linux, windows, darwin]
goarch: ["386", amd64]
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/go-release-action@v1.14
- name: checkout code
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:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
ldflags: '-linkmode external -extldflags "-static" -s -w'
pre_command: apt-get update && apt-get install -y libsqlite3 gcc
binary_name: "ovenvpn-user"
asset_name: ovenvpn-user-${{ matrix.goos }}-${{ matrix.goarch }}.