Skip to content

Commit 187167e

Browse files
committed
ci: checkout release tag before running goreleaser
1 parent 47c2315 commit 187167e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ jobs:
4040
with:
4141
config-file: release-please-config.json
4242

43+
- name: Fetch tags
44+
run: git fetch --force --tags
45+
46+
- name: Checkout release tag
47+
if: ${{ steps.release.outputs.release_created }}
48+
run: git checkout ${{ steps.release.outputs.tag_name }}
49+
4350
- name: Publish release artifacts
4451
if: ${{ steps.release.outputs.release_created }}
4552
uses: goreleaser/goreleaser-action@v6

0 commit comments

Comments
 (0)