add tag after all of the python package published

This commit is contained in:
Kevin 2025-03-14 17:01:13 +00:00
parent c5b8c19ebc
commit 3d9034a1f5

View File

@ -36,13 +36,6 @@ jobs:
ref: main
python-version: '3.11'
token: ${{ secrets.CHECKOUT_PAT }}
- name: Add tag and push to the repository
run: |
git config user.name "API Team"
git config user.email "api-team@thousandeyes.com"
git tag ${{ github.event.inputs.releaseVersion }}
git push origin ${{ github.event.inputs.releaseVersion }}
- name: Set up Python
uses: actions/setup-python@v5
with:
@ -60,4 +53,18 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
add-tag:
runs-on: ubuntu-latest
needs: deployment
steps:
- name: Checkout latest code
uses: actions/checkout@v4
- name: Add tag and push to the repository
run: |
git config user.name "API Team"
git config user.email "api-team@thousandeyes.com"
git tag ${{ github.event.inputs.releaseVersion }}
git push origin ${{ github.event.inputs.releaseVersion }}