diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8772445672ceff5ad018aede255e3fa4b45b6fee..2a48d0d6826f09c6996032ec0b6dbcb78d31b52c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - checks - tests + - publish - coverage variables: @@ -71,6 +72,23 @@ tests-3.8: variables: PYTHON_VERSION: "3.8" +pypi_test: + stage: publish + only: [tags] + when: manual + script: + - poetry install --no-dev + - poetry config repositories.pypi_test https://test.pypi.org/legacy/ + - poetry publish --build --username $PYPI_TEST_LOGIN --password $PYPI_TEST_PASSWORD --repository pypi_test + +pypi: + stage: publish + only: [tags] + when: manual + script: + - poetry install --no-dev + - poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD + pages: extends: .code_changes needs: [tests-3.7-coverage]