Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/reusable-release-alauda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,18 @@ jobs:
go-version-file: go.mod
cache: false

- name: Generate Version
id: generate_version
run: |
# remove "alauda-" prefix
GENERATED_VERSION=$(echo "${{ github.ref_name }}" | sed 's/alauda-//')
echo "GENERATED_VERSION=$GENERATED_VERSION" >> $GITHUB_OUTPUT

- name: Set up GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: v2.1.0
args: release -f=.goreleaser-alauda.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GENERATED_VERSION: ${{ steps.generate_version.outputs.GENERATED_VERSION }}
5 changes: 3 additions & 2 deletions .goreleaser-alauda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ builds:
goarch:
- amd64
- arm64
ldflags:
- -w -s -extldflags '-static'
flags:
- -trimpath
ldflags: -s -w -X main.version={{.Env.GENERATED_VERSION}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
main: ./cmd/golangci-lint/
binary: alauda-golangci-lint

Expand Down
Loading