From e813a7de3efe0ee279d5f998da441da5595e9ac9 Mon Sep 17 00:00:00 2001 From: Nandor Kracser Date: Mon, 8 Jun 2026 13:41:14 +0200 Subject: [PATCH] feat: add release workflow for automatic major version tagging --- .github/workflows/release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..74b8568 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +name: Release + +on: + push: + tags: + - 'v*.*.*' + +jobs: + update-major-tag: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - name: Move major version tag + run: | + major=$(echo "${GITHUB_REF_NAME}" | cut -d. -f1) + git tag -f "${major}" + git push origin "${major}" --force