Skip to content
Snippets Groups Projects
Commit 016b0952 authored by Daniel Sali's avatar Daniel Sali
Browse files

Publish package to Test PyPI on main merge

parent 20e018f2
Branches
Tags
1 merge request!3Remove async wait
...@@ -11,6 +11,7 @@ stages: ...@@ -11,6 +11,7 @@ stages:
- build - build
# - test # - test
- publish - publish
- publish-test
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip-cache" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip-cache"
...@@ -41,3 +42,12 @@ publish: ...@@ -41,3 +42,12 @@ publish:
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
- if: $CI_PIPELINE_SOURCE == "release" - if: $CI_PIPELINE_SOURCE == "release"
publish-test:
stage: publish-test
script:
- TWINE_PASSWORD=${TEST_PYPI_TOKEN} TWINE_USERNAME=__token__ python3 -m twine upload --repository testpypi dist/*
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
dependencies:
- build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment