Skip to content
Snippets Groups Projects
Commit 24c32a1d0667 authored by Dan Villiom Podlaski Christiansen's avatar Dan Villiom Podlaski Christiansen
Browse files

ci: build archives on protected branches and when requested

parent ec8fefc3adde
No related branches found
No related tags found
1 merge request!134Use setuptools & setuptools_scm
......@@ -232,8 +232,13 @@
image: quay.io/pypa/${PLATFORM}
timeout: 15m
stage: archives
only:
- tags
rules:
# run on tags
- if: $CI_COMMIT_TAG
# run on protected references
- if: '$CI_COMMIT_REF_PROTECTED == "true"'
# and when explicitly requested
- if: '$CI_BUILD_ARCHIVES == "1"'
variables:
PYPI_REPOSITORY: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi
script:
......
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