ci: added stable tag that gets moved with every release

This commit is contained in:
Folke Lemaitre 2022-12-29 22:58:10 +01:00
parent 9f3fb38402
commit 0c386bbea2
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 10 additions and 0 deletions

View File

@ -59,3 +59,13 @@ jobs:
with:
release-type: simple
package-name: lazy.nvim
- name: tag stable versions
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
git tag -d stable || true
git push origin :stable || true
git tag -a stable -m "Last Stable Release"
git push origin stable