Skip to content
Snippets Groups Projects
Commit 38da67df authored by Mayr, Hannes's avatar Mayr, Hannes
Browse files

Run packaging and gitlab release on creation of a new tag.

parent 461cb90e
No related branches found
No related tags found
1 merge request!55Resolve "Automated build"
Pipeline #870952 failed
...@@ -67,7 +67,6 @@ pages: ...@@ -67,7 +67,6 @@ pages:
- public - public
rules: rules:
- if: "$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH" - if: "$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH"
- when: manual
sast: sast:
before_script: before_script:
...@@ -95,14 +94,12 @@ include: ...@@ -95,14 +94,12 @@ include:
build_and_upload: build_and_upload:
stage: package stage: package
needs: []
script: script:
- pip install build twine - pip install build twine
- python3 -m build - python3 -m build
- TWINE_PASSWORD=${CI_PYPI_TOKEN} TWINE_USERNAME=__token__ python3 -m twine upload --repository testpypi dist/* - TWINE_PASSWORD=${CI_PYPI_TOKEN} TWINE_USERNAME=__token__ python3 -m twine upload --repository testpypi dist/*
rules: rules:
- if: "$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH" - if: $CI_COMMIT_TAG
- when: manual
release_job: release_job:
stage: release stage: release
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment