Skip to content

Commit

Permalink
Fix tag pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
k-knosala committed Apr 22, 2024
1 parent 960d377 commit 92238fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ pypi-upload:
script:
# Test if the version defined in `pyproject.toml` is the same as the tag
- PYPROJECT_VERSION=$(grep -m 1 version pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3)
- test PYPROJECT_VERSION = v${CI_COMMIT_TAG}
- echo ${PYPROJECT_VERSION}
- echo v${CI_COMMIT_TAG}
- test $PYPROJECT_VERSION = v${CI_COMMIT_TAG}
# Build and push to pypi
- python3 -m build
- python3 -m twine upload dist/*
Expand Down

0 comments on commit 92238fe

Please sign in to comment.