Skip to content

Commit

Permalink
fix: fix release config
Browse files Browse the repository at this point in the history
  • Loading branch information
sixwaaaay committed Sep 25, 2023
1 parent 1e6da38 commit 394a2ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CI"
name: "RELEASE"
on:
push:
branches:
Expand All @@ -7,7 +7,7 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:

test:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -22,10 +22,11 @@ jobs:
export GIT_SHA=`git rev-parse HEAD`
- name: Release
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_SHA: ${{ env.GIT_SHA }}
Expand Down
5 changes: 2 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- linux
- windows
- darwin
ldflags:
- -s -w -X "github.com/nebula-contrib/ngctl/pkg/version.GitRef={{ .Env.GIT_REF }}" -X "github.com/nebula-contrib/ngctl/pkg/version.GitSha={{ .Env.GIT_SHA }}"
- -s -w -X "github.com/nebula-contrib/ngctl/pkg/version.GitRef={{ .Branch }}" -X "github.com/nebula-contrib/ngctl/pkg/version.GitSha={{ .ShortCommit }}"
binary: ngctl
archives:
- format: tar.gz
Expand All @@ -26,7 +26,6 @@ archives:
- goos: windows
format: zip
files:
- ngctl
- LICENSE
- README.md
checksum:
Expand Down

0 comments on commit 394a2ca

Please sign in to comment.