Skip to content

Commit 25e87f8

Browse files
committed
allow git tag from github action
1 parent 9125310 commit 25e87f8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,15 @@ jobs:
100100
git config --local user.email "action@github.com"
101101
git config --local user.name "GitHub Action"
102102
103+
- name: Set up PAT for pushing tags
104+
run: git remote set-url origin https://hieutrtr:${{ secrets.GH_PAT }}@github.com/Cognitive-Stack/mcphub.git
105+
103106
- name: Create and push tag
104107
if: steps.check-tag.outputs.tag_exists == 'false'
105108
run: |
106-
# Create a new tag with the version from pyproject.toml
107109
git tag -a "v${PACKAGE_VERSION}" -m "Release version ${PACKAGE_VERSION}"
108-
# Push the tag to the remote repository
109110
git push origin "v${PACKAGE_VERSION}"
110-
111+
111112
- name: Build and publish
112113
env:
113114
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)