Skip to content

Commit

Permalink
fix: set version
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanViast committed Oct 9, 2024
1 parent 3752d23 commit 0d3253a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 29 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,9 @@ permissions:
contents: write

jobs:
build-package:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Set up Go 1.x.y
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Checkout codebase
uses: actions/checkout@v3

- name: Build Package
run: |
make build RELEASE=${{ github.ref_name }}
goreleaser:
runs-on: ubuntu-latest
needs: build-package
steps:
- name: Get version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down
18 changes: 9 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ builds:
- amd64
ldflags:
- -s -w
- -X github.com/easegress-io/easegress/v2/pkg/version.RELEASE={{ .Tag }}
- -X github.com/easegress-io/easegress/v2/pkg/version.COMMIT={{.Commit}}
- -X github.com/easegress-io/easegress/v2/pkg/version.REPO=chainbase-labs/easegress-providerproxy
- -X github.com/megaease/easegress/v2/pkg/version.RELEASE={{ .Tag }}
- -X github.com/megaease/easegress/v2/pkg/version.COMMIT={{.Commit}}
- -X github.com/megaease/easegress/v2/pkg/version.REPO=chainbase-labs/easegress-providerproxy

- id: builder
main: cmd/builder/main.go
Expand All @@ -49,9 +49,9 @@ builds:
- amd64
ldflags:
- -s -w
- -X github.com/easegress-io/easegress/v2/pkg/version.RELEASE={{ .Tag }}
- -X github.com/easegress-io/easegress/v2/pkg/version.COMMIT={{.Commit}}
- -X github.com/easegress-io/easegress/v2/pkg/version.REPO=chainbase-labs/easegress-providerproxy
- -X github.com/megaease/easegress/v2/pkg/version.RELEASE={{ .Tag }}
- -X github.com/megaease/easegress/v2/pkg/version.COMMIT={{.Commit}}
- -X github.com/megaease/easegress/v2/pkg/version.REPO=chainbase-labs/easegress-providerproxy

- id: server
main: cmd/server/main.go
Expand All @@ -64,9 +64,9 @@ builds:
- amd64
ldflags:
- -s -w
- -X github.com/easegress-io/easegress/v2/pkg/version.RELEASE={{ .Tag }}
- -X github.com/easegress-io/easegress/v2/pkg/version.COMMIT={{.Commit}}
- -X github.com/easegress-io/easegress/v2/pkg/version.REPO=chainbase-labs/easegress-providerproxy
- -X github.com/megaease/easegress/v2/pkg/version.RELEASE={{ .Tag }}
- -X github.com/megaease/easegress/v2/pkg/version.COMMIT={{.Commit}}
- -X github.com/megaease/easegress/v2/pkg/version.REPO=chainbase-labs/easegress-providerproxy

archives:
- id: easegress
Expand Down

0 comments on commit 0d3253a

Please sign in to comment.