Skip to content

Commit

Permalink
ci: There is no need to do it manually...
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed May 4, 2023
1 parent 23360b4 commit ebe8439
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,5 @@ jobs:
- name: Build sdist and wheel
run: |
python -m build -s -w
- name: Mint API token
id: mint-token
run: |
resp=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=pypi")
oidc_token=$(jq '.value' <<< "${resp}")
resp=$(curl -X POST https://pypi.org/_/oidc/github/mint-token -d "{\"token\": \"${oidc_token}\"}")
api_token=$(jq '.token' <<< "${resp}")
echo "::add-mask::${api_token}"
echo "api-token=${api_token}" >> "${GITHUB_OUTPUT}"
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ steps.mint-token.outputs.api-token }}

0 comments on commit ebe8439

Please sign in to comment.