From f6a6e0eb1b2165b79fb31777848f4ca94afa7382 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Fri, 15 Nov 2024 17:26:17 +0800 Subject: [PATCH] enhance: append 'v' prefix to cli version --- .github/workflows/publish-cli.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-cli.yaml b/.github/workflows/publish-cli.yaml index eb6d0da..84e6a71 100644 --- a/.github/workflows/publish-cli.yaml +++ b/.github/workflows/publish-cli.yaml @@ -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: |