Commit ebe8439 1 parent 23360b4 commit ebe8439 Copy full SHA for ebe8439
File tree 1 file changed +0
-12
lines changed
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -131,17 +131,5 @@ jobs:
131
131
- name : Build sdist and wheel
132
132
run : |
133
133
python -m build -s -w
134
- - name : Mint API token
135
- id : mint-token
136
- run : |
137
- resp=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
138
- "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=pypi")
139
- oidc_token=$(jq '.value' <<< "${resp}")
140
- resp=$(curl -X POST https://pypi.org/_/oidc/github/mint-token -d "{\"token\": \"${oidc_token}\"}")
141
- api_token=$(jq '.token' <<< "${resp}")
142
- echo "::add-mask::${api_token}"
143
- echo "api-token=${api_token}" >> "${GITHUB_OUTPUT}"
144
134
- name : Publish
145
135
uses : pypa/gh-action-pypi-publish@release/v1
146
- with :
147
- password : ${{ steps.mint-token.outputs.api-token }}
You can’t perform that action at this time.
0 commit comments