mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-27 14:37:27 +08:00
add netmaker binary to release
This commit is contained in:
parent
4b65bb5f67
commit
43b680d59b
1 changed files with 13 additions and 0 deletions
13
.github/workflows/buildandrelease.yml
vendored
13
.github/workflows/buildandrelease.yml
vendored
|
|
@ -33,6 +33,7 @@ jobs:
|
|||
|
||||
- name: Build
|
||||
run: |
|
||||
env GOOS=linux GOARCH=amd64 go build -o build/netmaker main.go
|
||||
cd netclient
|
||||
env GOOS=linux GOARCH=amd64 go build -o build/netclient main.go
|
||||
env GOOS=linux GOARCH=arm GOARM=5 go build -o build/netclient-arm5/netclient main.go
|
||||
|
|
@ -47,6 +48,18 @@ jobs:
|
|||
env CGO_ENABLED=0 GOOS=freebsd GOARCH=arm64 go build -o build/netclient-freebsd-arm64/netclient main.go
|
||||
env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o build/netclient-darwin/netclient main.go
|
||||
|
||||
- name: Upload netmaker x86 to Release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: build/netmaker
|
||||
tag: |
|
||||
${{ env.NETMAKER_VERSION }}
|
||||
latest
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
asset_name: netmaker
|
||||
|
||||
- name: Upload x86 to Release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue