From f434c4bd47df4afbe78a7d939a9ab6b926a8b90e Mon Sep 17 00:00:00 2001 From: Liquidwe Date: Tue, 17 Dec 2024 16:43:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix:=20modify=20the=20release=20?= =?UTF-8?q?build=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b439039..9f3bff1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,19 +27,13 @@ jobs: go-version: 1.22 - name: Get Manuscript CLI Version run: | + cd cli && \ MANUSCRIPT_CLI_VERSION='v'$(go run main.go version | tr -s ' ' | awk '{print $NF}') echo "MANUSCRIPT_CLI_VERSION=$MANUSCRIPT_CLI_VERSION" >> $GITHUB_ENV - name: Get Git Tag Version run: | Git_TAG_VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') echo "Git_TAG_VERSION=$Git_TAG_VERSION" >> $GITHUB_ENV - - name: Check if versions match - run: | - if [ "${{ env.MANUSCRIPT_CLI_VERSION }}" != "${{ env.Git_TAG_VERSION }}" ]; then - echo "Versions do not match!" - exit 1 - fi - echo "Versions match!" - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: @@ -49,4 +43,5 @@ jobs: version: "~> v2" args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + working-directory: cli \ No newline at end of file