Skip to content

Commit

Permalink
enhance: append 'v' prefix to cli version
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Nov 15, 2024
1 parent 5d09e10 commit f6a6e0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
- name: Build CLI
run: |
go mod tidy
GOOS=windows GOARCH=${{ env.GOARCH }} go build -ldflags "-X main.VersionX='${{ github.event.release.tag_name }}'" -o dify-plugin-windows-${{ env.GOARCH }} ./cmd/commandline
GOOS=darwin GOARCH=${{ env.GOARCH }} go build -ldflags "-X main.VersionX='${{ github.event.release.tag_name }}'" -o dify-plugin-darwin-${{ env.GOARCH }} ./cmd/commandline
GOOS=linux GOARCH=${{ env.GOARCH }} go build -ldflags "-X main.VersionX='${{ github.event.release.tag_name }}'" -o dify-plugin-linux-${{ env.GOARCH }} ./cmd/commandline
GOOS=windows GOARCH=${{ env.GOARCH }} go build -ldflags "-X main.VersionX='v${{ github.event.release.tag_name }}'" -o dify-plugin-windows-${{ env.GOARCH }} ./cmd/commandline
GOOS=darwin GOARCH=${{ env.GOARCH }} go build -ldflags "-X main.VersionX='v${{ github.event.release.tag_name }}'" -o dify-plugin-darwin-${{ env.GOARCH }} ./cmd/commandline
GOOS=linux GOARCH=${{ env.GOARCH }} go build -ldflags "-X main.VersionX='v${{ github.event.release.tag_name }}'" -o dify-plugin-linux-${{ env.GOARCH }} ./cmd/commandline
- name: Publish CLI
run: |
Expand Down

0 comments on commit f6a6e0e

Please sign in to comment.