Skip to content
Snippets Groups Projects
Verified Commit 7760a9c3 authored by Janis Streib's avatar Janis Streib :owl:
Browse files

FIX: use latest twine

parent e78d6cdc
No related branches found
No related tags found
No related merge requests found
Pipeline #424501 passed
......@@ -26,7 +26,7 @@ build:
- apt-get -y update
- command -v git || apt-get -y install git
- command -v python3 || apt-get -y install python3
- command -v pip3 || apt-get -y install python3-pip twine python3-build
- command -v pip3 || apt-get -y install python3-pip python3-build
- command -v curl || apt-get -y install curl
- command -v bsdtar || apt-get -y install libarchive-tools
- python3 -V # Print out python version for debugging
......@@ -55,8 +55,11 @@ upload:
- apt-get -y update
- command -v git || apt-get -y install git
- command -v twine || apt-get -y install twine
- python3 -m venv || apt-get -y install python3-venv
- python3 -m venv venv
- venv/bin/pip3 install twine
script:
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token twine upload --verbose --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi --skip-existing dist/*
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token venv/bin/twine upload --verbose --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi --skip-existing dist/*
needs:
- job: build
artifacts: true
......
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