Merge pull request #117 from gravitl/github-action

update release action to fix paths
This commit is contained in:
Alex 2021-04-21 13:09:27 -04:00 committed by GitHub
commit 4b6a3e0abe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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