Commit e2a1d826 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

Merge branch...

Merge branch '40-fix-twine_username-is-set-to-the-container-registry-user-by-default-which-does-not-have-right' into 'main'

fix: default TWINE_USERNAME should be set to gitlab-ci-token

Closes #40

See merge request just-ci/templates!83
parents 676c0db9 c25b8186
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -2,13 +2,14 @@
include:
  - local: python/generic.yml

python:twine:
  extends: .python:pre
  stage: .post
variables:
    TWINE_USERNAME: ${CI_REGISTRY_USER}
  TWINE_USERNAME: gitlab-ci-token
  TWINE_PASSWORD: ${CI_JOB_TOKEN}
  TWINE_REGISTRY: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi

python:twine:
  extends: .python:pre
  stage: .post
  script:
    - pip3 install twine build
    - python3 -m build