Skip to content
Snippets Groups Projects
Commit 6bfb0f12 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'build-pypi' into 'master'

Upload package to package registry

See merge request AlekSIS/official/AlekSIS!371
parents acee1569 eab5f339
No related branches found
No related tags found
1 merge request!371Upload package to package registry
Pipeline #4310 canceled
build_dist:
stage: build
script:
- "[ $CI_COMMIT_REF_NAME = master ] && poetry version $(poetry version | cut -d' ' -f2)+$(date +%s).${CI_COMMIT_SHORT_SHA}"
- tox -e build
artifacts:
paths:
......
deploy_packages:
stage: deploy
script:
- poetry publish -r gitlab -u gitlab-ci-token -p ${CI_JOB_TOKEN} -u gitlab-ci-token
......@@ -9,6 +9,7 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
FF_NETWORK_PER_BUILD: "true"
POETRY_REPOSITORIES_GITLAB_URL: "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/pypi"
cache:
key:
......
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