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

CI/CD pipeline to build on main commit and publish to PyPI on release 2

parent 771d9254
No related branches found
No related tags found
No related merge requests found
Pipeline #11155 failed
......@@ -4,7 +4,7 @@ default:
paths:
- .pip-cache/
before_script:
- python --version
- python3 --version
- pip install --upgrade pip
- pip install build twine
......@@ -19,7 +19,7 @@ variables:
build:
stage: build
script:
- python -m build
- python3 -m build
artifacts:
paths:
- dist/
......@@ -38,7 +38,7 @@ build:
publish:
stage: publish
script:
- TWINE_PASSWORD=${PYPI_TOKEN} TWINE_USERNAME=__token__ python -m twine upload dist/*
- TWINE_PASSWORD=${PYPI_TOKEN} TWINE_USERNAME=__token__ python3 -m twine upload dist/*
rules:
- if: $CI_COMMIT_TAG
- if: $CI_PIPELINE_SOURCE == "release"
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