From 5a87ffe35c4739ffb6b62052572583ad277a20ae Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Tue, 28 May 2024 16:11:06 +1000 Subject: [PATCH] ci: release tags vMAJOR.MINOR.PATCH (#2772) * ci: release tags vMAJOR.MINOR.PATCH * ci: tidy luarocks release naming --- .../{luarocks.yml => luarocks-release.yml} | 2 +- .github/workflows/release-please.yml | 20 +++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) rename .github/workflows/{luarocks.yml => luarocks-release.yml} (97%) diff --git a/.github/workflows/luarocks.yml b/.github/workflows/luarocks-release.yml similarity index 97% rename from .github/workflows/luarocks.yml rename to .github/workflows/luarocks-release.yml index 968d3019..34d63c1e 100644 --- a/.github/workflows/luarocks.yml +++ b/.github/workflows/luarocks-release.yml @@ -1,4 +1,4 @@ -name: Release +name: Luarocks Release on: push: tags: diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index bd97e491..5de026a3 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -23,11 +23,15 @@ jobs: git config user.name github-actions[bot] git config user.email 41898282+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 v${{ steps.release.outputs.major }} || true - git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true - git push origin :v${{ steps.release.outputs.major }} || true - git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true - git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}" - git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}" - git push origin v${{ steps.release.outputs.major }} - git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} + git tag -d v${{ steps.release.outputs.major }} || true + git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true + git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} || true + git push origin :v${{ steps.release.outputs.major }} || true + git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true + git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} || true + git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}" + git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}" + git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}" + git push origin v${{ steps.release.outputs.major }} + git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} + git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}