Skip to content
Snippets Groups Projects
Verified Commit 3246ed1f authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Publish PyPI package in build stage

Also, disable wheel build for branches
parent 96fd5cb3
No related branches found
No related tags found
No related merge requests found
......@@ -5,4 +5,3 @@ include:
- local: "/ci/build_docker.yml"
- local: "/ci/pages.yml"
- local: "/ci/deploy.yml"
- local: "/ci/deploy_packages.yml"
......@@ -3,6 +3,10 @@ build_dist:
script:
- "[ $CI_COMMIT_REF_NAME = master ] && poetry version $(poetry version | cut -d' ' -f2)+$(date +%s).${CI_COMMIT_SHORT_SHA}"
- tox -e build
- poetry publish -r gitlab -u gitlab-ci-token -p ${CI_JOB_TOKEN} -u gitlab-ci-token
artifacts:
paths:
- dist/
only:
- master
- tags
deploy_packages:
stage: deploy
script:
- poetry publish -r gitlab -u gitlab-ci-token -p ${CI_JOB_TOKEN} -u gitlab-ci-token
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