From 1c213407e566b800ad2820f2f9a33debac417b74 Mon Sep 17 00:00:00 2001 From: Eason <291028775@qq.com> Date: Wed, 7 Sep 2022 10:30:11 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 399cd0d..0af5d4e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,21 +26,13 @@ jobs: - name: Build run: go build -o sib - - name: run - id: ver - run: echo "::set-output name=version::$(./sib version)" - - - name: compare - if: ${{ env.VERSION != env.TAG }} - run: exit 1 - env: - VERSION: v${{ steps.ver.outputs.version }} - TAG: ${{ steps.previoustag.outputs.tag }} + - name: replace version + run: sed -i "s/SONIC_VERSION/${{ steps.previoustag.outputs.tag }}/g" cmd/version.go - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: version: latest - args: release --rm-dist + args: release --rm-dist --skip-validate env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}