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: ...@@ -4,7 +4,7 @@ default:
paths: paths:
- .pip-cache/ - .pip-cache/
before_script: before_script:
- python --version - python3 --version
- pip install --upgrade pip - pip install --upgrade pip
- pip install build twine - pip install build twine
...@@ -19,7 +19,7 @@ variables: ...@@ -19,7 +19,7 @@ variables:
build: build:
stage: build stage: build
script: script:
- python -m build - python3 -m build
artifacts: artifacts:
paths: paths:
- dist/ - dist/
...@@ -38,7 +38,7 @@ build: ...@@ -38,7 +38,7 @@ build:
publish: publish:
stage: publish stage: publish
script: 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: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
- if: $CI_PIPELINE_SOURCE == "release" - 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