Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Sep 7, 2022
1 parent 40959aa commit 1c21340
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 1c21340

Please sign in to comment.