Compare commits
1 Commits
Release-nf
...
Release-nf
Author | SHA1 | Date | |
---|---|---|---|
d72d2a8302 |
30
.github/workflows/nfctl.yml
vendored
30
.github/workflows/nfctl.yml
vendored
@ -25,38 +25,36 @@ jobs:
|
|||||||
go-version: '1.20'
|
go-version: '1.20'
|
||||||
|
|
||||||
- name: build linux amd64
|
- name: build linux amd64
|
||||||
run: CGO_ENABLE=0 GOOS=linux GOARCH=amd64 go build -ldflags='-s -w' -o "dist/nfctl-linux_amd64-${{ env.RELEASE_VERSION }}" nft/nfctl/main.go
|
run: CGO_ENABLE=0 GOOS=linux GOARCH=amd64 go build -ldflags='-s -w' -o dist/nfctl-linux_amd64-$RELEASE_VERSION nft/nfctl/main.go
|
||||||
|
|
||||||
- name: build linux arm64
|
- name: build linux arm64
|
||||||
run: CGO_ENABLE=0 GOOS=linux GOARCH=arm64 go build -ldflags='-s -w' -o "dist/nfctl-linux_arm64-${{ env.RELEASE_VERSION }}" nft/nfctl/main.go
|
run: CGO_ENABLE=0 GOOS=linux GOARCH=arm64 go build -ldflags='-s -w' -o dist/nfctl-linux_arm64-$RELEASE_VERSION nft/nfctl/main.go
|
||||||
|
|
||||||
- name: build windows amd64
|
- name: build windows amd64
|
||||||
run: CGO_ENABLE=0 GOOS=windows GOARCH=amd64 go build -ldflags='-s -w' -o "dist/nfctl-win_amd64-${{ env.RELEASE_VERSION }}.exe" nft/nfctl/main.go
|
run: CGO_ENABLE=0 GOOS=windows GOARCH=amd64 go build -ldflags='-s -w' -o dist/nfctl-win_amd64-$RELEASE_VERSION.exe nft/nfctl/main.go
|
||||||
|
|
||||||
- name: build windows arm64
|
- name: build windows arm64
|
||||||
run: CGO_ENABLE=0 GOOS=windows GOARCH=arm64 go build -ldflags='-s -w' -o "dist/nfctl-win_arm64-${{ env.RELEASE_VERSION }}.exe" nft/nfctl/main.go
|
run: CGO_ENABLE=0 GOOS=windows GOARCH=arm64 go build -ldflags='-s -w' -o dist/nfctl-win_arm64-$RELEASE_VERSION.exe nft/nfctl/main.go
|
||||||
|
|
||||||
- name: build darwin amd64
|
- name: build darwin amd64
|
||||||
run: CGO_ENABLE=0 GOOS=darwin GOARCH=amd64 go build -ldflags='-s -w' -o "dist/nfctl-darwin_arm64-${{ env.RELEASE_VERSION }}" nft/nfctl/main.go
|
run: CGO_ENABLE=0 GOOS=darwin GOARCH=amd64 go build -ldflags='-s -w' -o dist/nfctl-darwin_arm64-$RELEASE_VERSION nft/nfctl/main.go
|
||||||
|
|
||||||
- name: build darwin arm64
|
- name: build darwin arm64
|
||||||
run: CGO_ENABLE=0 GOOS=darwin GOARCH=arm64 go build -ldflags='-s -w' -o "dist/nfctl-darwin_arm64-${{ env.RELEASE_VERSION }}" nft/nfctl/main.go
|
run: CGO_ENABLE=0 GOOS=darwin GOARCH=arm64 go build -ldflags='-s -w' -o dist/nfctl-darwin_arm64-$RELEASE_VERSION nft/nfctl/main.go
|
||||||
|
|
||||||
- name: show all builds
|
|
||||||
run: ls -lash dist
|
|
||||||
|
|
||||||
- name: create releases
|
- name: create releases
|
||||||
id: create_releases
|
id: create_releases
|
||||||
uses: "marvinpinto/action-automatic-releases@latest"
|
uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
automatic_release_tag: "Release-nfctl-${{ env.RELEASE_VERSION }}"
|
automatic_release_tag: "Release-nfctl-$RELEASE_VERSION"
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
title: "Release_${{ env.RELEASE_VERSION }}"
|
title: "Release_$RELEASE_VERSION"
|
||||||
prerelease: false
|
prerelease: false
|
||||||
files: |
|
files: |
|
||||||
dist/nfctl-linux_amd64-${{ env.RELEASE_VERSION }}
|
dist/nfctl-linux_amd64-$RELEASE_VERSION
|
||||||
dist/nfctl-linux_arm64-${{ env.RELEASE_VERSION }}
|
dist/nfctl-linux_arm64-$RELEASE_VERSION
|
||||||
dist/nfctl-win_amd64-${{ env.RELEASE_VERSION }}.exe
|
dist/nfctl-win_amd64-$RELEASE_VERSION.exe
|
||||||
dist/nfctl-win_arm64-${{ env.RELEASE_VERSION }}.exe
|
dist/nfctl-win_arm64-$RELEASE_VERSION.exe
|
||||||
dist/nfctl-darwin_arm64-${{ env.RELEASE_VERSION }}
|
dist/nfctl-darwin_arm64-$RELEASE_VERSION
|
||||||
dist/nfctl-darwin_arm64-${{ env.RELEASE_VERSION }}
|
dist/nfctl-darwin_arm64-$RELEASE_VERSION
|
||||||
|
Reference in New Issue
Block a user