We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8b6211 commit 14518cfCopy full SHA for 14518cf
{{cookiecutter.project_name}}/{% if cookiecutter.__ci=='gitlab' %}.gitlab-ci.yml{% endif %}
@@ -21,7 +21,7 @@ before_script:
21
- python -V
22
- python -m venv .venv
23
- source .venv/bin/activate
24
- - python -m pip install -U pip pipx id
+ - python -m pip install -U pip pipx
25
- python -m pipx ensurepath
26
- python -m pip freeze
27
@@ -153,7 +153,7 @@ make_wheels:
153
{%- endif %}
154
script:
155
# Retrieve the OIDC token from GitLab CI/CD and exchange it for a PyPI API token
156
- - oidc_token=$(python -m id PYPI)
+ - oidc_token=$(pipx run id PYPI)
157
- response=$(curl -X POST "${OIDC_MINT_TOKEN_URL}" -d "{\"token\":\"${oidc_token}\"}")
158
- api_token=$(jq --raw-output '.token' <<< "${response}")
159
0 commit comments