fix(release): attempt to sign major and minor tags

This commit is contained in:
2023-05-08 00:37:18 +01:00
parent ccc95c2796
commit 77312c11a9

View File

@@ -14,23 +14,17 @@ jobs:
with:
app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}
- uses: actions/checkout@v3
- name: Create/update MAJOR tag
if: ${{ steps.release.outputs.release_created }}
- name: Tag major and minor versions
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name 'jimehbot[bot]'
git config user.email '132453784+jimehbot[bot]@users.noreply.github.com'
git remote add gh-token "https://${GITHUB_TOKEN}@github.com/${{ github.repository }}.git"
git tag -d "$MAJOR_TAG" || true
git tag -d "$MINOR_TAG" || true
git push origin ":${MAJOR_TAG}" || true
git push origin ":${MINOR_TAG}" || true
git tag -a "$MAJOR_TAG" -m "Release v${{ steps.release.outputs.version }}"
git tag -a "$MINOR_TAG" -m "Release v${{ steps.release.outputs.version }}"
git push origin "$MAJOR_TAG"
git push origin "$MINOR_TAG"
uses: richardsimko/update-tag@v1
with:
tag_name: v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create/update MAJOR.MINOR tag
if: ${{ steps.release.outputs.release_created }}
uses: richardsimko/update-tag@v1
with:
tag_name: v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAJOR_TAG: v${{ steps.release.outputs.major }}
MINOR_TAG: v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}