diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6afb933e34cc560c224f8e1ea8f2a71b386028a5..3e59719bb1e498f3a2ed6bed590e372540df6df0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,11 +56,10 @@ release: stage: release when: manual variables: - TWINE_USERNAME: gitlab-ci-token # Use CI default username for GitLab PyPI - TWINE_PASSWORD: $CI_JOB_TOKEN # CI job token for authentication + TWINE_USERNAME: gitlab-ci-token # Keep username same + TWINE_PASSWORD: $CI_JOB_TOKEN # Use PAT stored in GitLab CI/CD Variables script: - pip install build twine # Install dependencies - python -m build # Build the package - twine upload \ - --repository-url https://gitlab.psi.ch/api/v4/projects/2206/packages/pypi \ - dist/* \ No newline at end of file + --repository-url https://gitlab.psi.ch/api/v4/projects/2206/packages/pypidist/* \ No newline at end of file