Skip to content

Commit

Permalink
Update CI/CD logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-khvostishkov committed May 11, 2024
1 parent b58c366 commit fcc654e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,14 @@ publish_testpypi:
- sed -e "s~__password__~$PyPI_Test_API_token~" .pypirc > $HOME/.pypirc
- pip install -U twine
- python -m twine upload --verbose --repository testpypi dist/*

publish_prodpypi:
stage: pypi
when: manual
dependencies:
- run_tests
script:
- ls dist/
- sed -e "s~__password__~$PyPI_API_token~" .pypirc > $HOME/.pypirc
- pip install -U twine
- python -m twine upload --verbose --repository pypi dist/*

0 comments on commit fcc654e

Please sign in to comment.