Skip to content

Commit

Permalink
Fix release error (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Apr 22, 2024
1 parent 8d9d858 commit fa622e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit fa622e2

Please sign in to comment.