Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down