From 25e87f8336bd321be520bb53c57f0a9ef05b0a63 Mon Sep 17 00:00:00 2001 From: Hieu Tran Date: Thu, 15 May 2025 23:02:31 +0700 Subject: [PATCH] allow git tag from github action --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac5c657..c03b92c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,14 +100,15 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" + - name: Set up PAT for pushing tags + run: git remote set-url origin https://hieutrtr:${{ secrets.GH_PAT }}@github.com/Cognitive-Stack/mcphub.git + - name: Create and push tag if: steps.check-tag.outputs.tag_exists == 'false' run: | - # Create a new tag with the version from pyproject.toml git tag -a "v${PACKAGE_VERSION}" -m "Release version ${PACKAGE_VERSION}" - # Push the tag to the remote repository git push origin "v${PACKAGE_VERSION}" - + - name: Build and publish env: PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}