mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
Merge pull request #117 from gravitl/github-action
update release action to fix paths
This commit is contained in:
commit
4b6a3e0abe
1 changed files with 49 additions and 49 deletions
98
.github/workflows/buildandrelease.yml
vendored
98
.github/workflows/buildandrelease.yml
vendored
|
@ -34,55 +34,11 @@ jobs:
|
|||
- name: Build
|
||||
run: |
|
||||
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/ main.go
|
||||
env GOOS=linux GOARCH=arm GOARM=6 go build -o build/netclient-arm6/ main.go
|
||||
env GOOS=linux GOARCH=arm GOARM=7 go build -o build/netclient-arm7/ main.go
|
||||
env GOOS=linux GOARCH=arm64 go build -o build/netclient-arm64/ main.go
|
||||
|
||||
- name: Upload arm5 to Release
|
||||
if: github.event.inputs.version == ''
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: netclient/build/netclient-arm5
|
||||
tag: ${{ env.NETMAKER_VERSION }}
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
asset_name: netclient-arm5
|
||||
|
||||
- name: Upload arm6 to Release
|
||||
if: github.event.inputs.version == ''
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: netclient/build/netclient-arm6
|
||||
tag: ${{ env.NETMAKER_VERSION }}
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
asset_name: netclient-arm6
|
||||
|
||||
- name: Upload arm7 to Release
|
||||
if: github.event.inputs.version == ''
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: netclient/build/netclient-arm7
|
||||
tag: ${{ env.NETMAKER_VERSION }}
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
asset_name: netclient-arm7
|
||||
|
||||
- name: Upload arm64 to Release
|
||||
if: github.event.inputs.version == ''
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: netclient/build/netclient-arm64
|
||||
tag: ${{ env.NETMAKER_VERSION }}
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
asset_name: netclient-arm64
|
||||
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
|
||||
env GOOS=linux GOARCH=arm GOARM=6 go build -o build/netclient-arm6/netclient main.go
|
||||
env GOOS=linux GOARCH=arm GOARM=7 go build -o build/netclient-arm7/netclient main.go
|
||||
env GOOS=linux GOARCH=arm64 go build -o build/netclient-arm64/netclient main.go
|
||||
|
||||
- name: Upload x86 to Release
|
||||
if: github.event.inputs.version == ''
|
||||
|
@ -94,3 +50,47 @@ jobs:
|
|||
overwrite: true
|
||||
prerelease: true
|
||||
asset_name: netclient
|
||||
|
||||
- name: Upload arm5 to Release
|
||||
if: github.event.inputs.version == ''
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: netclient/build/netclient-arm5/netclient
|
||||
tag: ${{ env.NETMAKER_VERSION }}
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
asset_name: netclient-arm5
|
||||
|
||||
- name: Upload arm6 to Release
|
||||
if: github.event.inputs.version == ''
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: netclient/build/netclient-arm6/netclient
|
||||
tag: ${{ env.NETMAKER_VERSION }}
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
asset_name: netclient-arm6
|
||||
|
||||
- name: Upload arm7 to Release
|
||||
if: github.event.inputs.version == ''
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: netclient/build/netclient-arm7/netclient
|
||||
tag: ${{ env.NETMAKER_VERSION }}
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
asset_name: netclient-arm7
|
||||
|
||||
- name: Upload arm64 to Release
|
||||
if: github.event.inputs.version == ''
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: netclient/build/netclient-arm64/netclient
|
||||
tag: ${{ env.NETMAKER_VERSION }}
|
||||
overwrite: true
|
||||
prerelease: true
|
||||
asset_name: netclient-arm64
|
||||
|
|
Loading…
Reference in a new issue