Skip to content

Commit ebe8439

Browse files
committed
ci: There is no need to do it manually...
1 parent 23360b4 commit ebe8439

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

.github/workflows/default.yml

-12
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,5 @@ jobs:
131131
- name: Build sdist and wheel
132132
run: |
133133
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}"
144134
- name: Publish
145135
uses: pypa/gh-action-pypi-publish@release/v1
146-
with:
147-
password: ${{ steps.mint-token.outputs.api-token }}

0 commit comments

Comments
 (0)