Skip to content

Commit 8a28d9f

Browse files
committed
release.yml update: add major and minor tagging
1 parent 3dedd4a commit 8a28d9f

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,18 @@ jobs:
9191
- name: Tagging new version
9292
id: newVersionTag
9393
run: |
94-
git tag -a v${{ env.RELEASE_VERSION }} -m "Release ${{ env.RELEASE_VERSION }}"
94+
RELEASE_TAG="v${{ env.RELEASE_VERSION }}"
95+
MINOR_TAG="v${{ env.RELEASE_VERSION_MAJOR }}.${{ env.RELEASE_VERSION_MINOR }}"
96+
MAJOR_TAG="v${{ env.RELEASE_VERSION_MAJOR }}"
97+
98+
git tag -d "${MINOR_TAG}" || true
99+
git tag -d "${MAJOR_TAG}" || true
100+
git push origin ":${MINOR_TAG}" || true
101+
git push origin ":${MAJOR_TAG}" || true
102+
103+
git tag -a "${RELEASE_TAG}" -m "Release ${{ env.RELEASE_VERSION }}"
104+
git tag -a "${MINOR_TAG}" -m "Tag latest minor version"
105+
git tag -a "${MAJOR_TAG}" -m "Tag latest major version"
95106
git push --tags
96107
97108
- name: Read changelog Entry

0 commit comments

Comments
 (0)