From 852ee8dab75c20881a44e7924365f1fecc6e630f Mon Sep 17 00:00:00 2001 From: swetha1654 Date: Wed, 11 Feb 2026 17:44:14 +0530 Subject: [PATCH 1/2] Add release workflow --- .github/workflows/release.yaml | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..0c57bbc --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,40 @@ +name: Release + +on: + push: + branches: [ chore/create-release-process ] + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Configure git + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + - name: Create tag + id: tag + run: | + LAST_TAG=$(git describe --tags --match "v[0-9]*.[0-9]*.[0-9]*" --abbrev=0 2>/dev/null || echo "v0.0.0") + VERSION=${LAST_TAG#v} + IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION" + PATCH=$((PATCH + 1)) + TAG="v${MAJOR}.${MINOR}.${PATCH}" + echo "tag=$TAG" >> "$GITHUB_OUTPUT" + git tag -a "$TAG" -m "Release $TAG" + git push origin "$TAG" + + - name: Create release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ steps.tag.outputs.tag }} + name: Release ${{ steps.tag.outputs.tag }} + generate_release_notes: true From 01dc845a192291433dda467fd13e31da612ee896 Mon Sep 17 00:00:00 2001 From: swetha1654 Date: Wed, 11 Feb 2026 17:46:12 +0530 Subject: [PATCH 2/2] update branch to main --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0c57bbc..ae86d55 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,7 +2,7 @@ name: Release on: push: - branches: [ chore/create-release-process ] + branches: [ main ] permissions: contents: write