Skip to content

Commit 553190e

Browse files
Add required id_tokens
1 parent dc5ad5a commit 553190e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

{{cookiecutter.project_name}}/{% if cookiecutter.__ci=='gitlab' %}.gitlab-ci.yml{% endif %}

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ deploy_staging:
164164
rules:
165165
- if:
166166
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"
167+
id_tokens:
168+
PYPI_ID_TOKEN:
169+
aud: testpypi
167170
variables:
168171
TWINE_REPOSITORY: testpypi
169172
TWINE_USERNAME: __token__
@@ -173,6 +176,9 @@ deploy_production:
173176
extends: .deploy
174177
only:
175178
- tags
179+
id_tokens:
180+
PYPI_ID_TOKEN:
181+
aud: pypi
176182
variables:
177183
TWINE_REPOSITORY: pypi
178184
TWINE_USERNAME: __token__

0 commit comments

Comments
 (0)