Skip to content

Commit 64f3bb6

Browse files
committed
ci: make sure latest tag is updated when publishing
1 parent fcddce9 commit 64f3bb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ jobs:
2222
git config user.name github-actions[bot]
2323
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
2424
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
25+
git tag -d latest || true
2526
git tag -d v${{ steps.release.outputs.major }} || true
2627
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
28+
git push origin :latest || true
2729
git push origin :v${{ steps.release.outputs.major }} || true
2830
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
31+
git tag -a latest -m "Release latest"
2932
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
3033
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
34+
git push origin latest
3135
git push origin v${{ steps.release.outputs.major }}
3236
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
3337

0 commit comments

Comments
 (0)