Skip to content
Snippets Groups Projects
Commit b3ec71aa authored by Moul's avatar Moul
Browse files

[enh] #105: Set-up CD: Add PyPi and PyPi test distribution

- manual and on tags trigger
parent 552b150c
No related branches found
No related tags found
No related merge requests found
stages: stages:
- checks - checks
- tests - tests
- publish
- coverage - coverage
variables: variables:
...@@ -69,6 +70,23 @@ tests-3.8: ...@@ -69,6 +70,23 @@ tests-3.8:
variables: variables:
PYTHON_VERSION: "3.8" PYTHON_VERSION: "3.8"
pypi_test:
stage: publish
only: [tags]
when: manual
script:
- mkdir -p /root/.config/pypoetry/
- touch /root/.config/pypoetry/config.toml
- 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 publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD
pages: pages:
extends: .code_changes extends: .code_changes
needs: [tests-3.7-coverage] needs: [tests-3.7-coverage]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment