From 3d9034a1f5971f42e5eedcfdfde42d132fe261c7 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 14 Mar 2025 17:01:13 +0000 Subject: [PATCH] add tag after all of the python package published --- .github/workflows/release.yaml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 78a87d94..8ad3bdad 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 }}