Skip to content
Snippets Groups Projects
Commit 8ed32ea7 authored by Martin Bergemann's avatar Martin Bergemann :speech_balloon:
Browse files

Test twine only job

parent a2287e2e
No related branches found
No related tags found
No related merge requests found
Pipeline #20123 failed
......@@ -34,24 +34,33 @@ pages:
release_job:
stage: release
image: python
needs: ["pages"]
needs: []
tags:
- docker, specific
rules:
- if: $CI_COMMIT_TAG
before_script:
- export PATH=$PATH:$HOME/bin
- pip install twine
- mkdir -p $HOME/bin/
- curl --location --output ~/bin/release-cli "https://release-cli-downloads.s3.amazonaws.com/latest/release-cli-linux-amd64"
- chmod +x $HOME/bin/release-cli
script:
- python setup.py sdist
- TWINE_PASSWORD=${CI_JOB_TOKEN}
TWINE_USERNAME=gitlab-ci-token
python -m twine upload --repository-url
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
release:
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
# release:
# tag_name: '$CI_COMMIT_TAG'
# description: '$CI_COMMIT_TAG'
# release_job_2:
# stage: release
# image: registry.gitlab.com/gitlab-org/release-cli:latest
# needs: ["release_job_1"]
# tags:
# - docker, specific
# rules:
# - if: $CI_COMMIT_TAG
# script:
# - echo 0
# release:
# tag_name: '$CI_COMMIT_TAG'
# description: '$CI_COMMIT_TAG'
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