diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index f6684f7..1f5b6e3 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -52,6 +52,7 @@ jobs: release: name: Publish Python SDK To PyPI if: github.ref == 'refs/heads/master' + needs: push-release-tag runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -66,7 +67,7 @@ jobs: git pull VERSION=$(git describe) echo "INFO Last tag: $VERSION" - cat setup.py | sed -i "s/ version=\"1.0.0\",/ version=\"$NEW_VERSION\",/" + sed -i "s/ version=\"1.0.0\",/ version=\"$VERSION\",/" setup.py - name: Package up SDK run: python setup.py sdist - name: Publish a Python distribution to PyPI