Skip to content

Commit

Permalink
Add required id_tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Apr 17, 2024
1 parent 36d86c9 commit ccc0e99
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ deploy_staging:
rules:
- if:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"
id_tokens:
PYPI_ID_TOKEN:
aud: testpypi
variables:
TWINE_REPOSITORY: testpypi
TWINE_USERNAME: __token__
Expand All @@ -173,6 +176,9 @@ deploy_production:
extends: .deploy
only:
- tags
id_tokens:
PYPI_ID_TOKEN:
aud: pypi
variables:
TWINE_REPOSITORY: pypi
TWINE_USERNAME: __token__
Expand Down

0 comments on commit ccc0e99

Please sign in to comment.