Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm authored Apr 30, 2023
1 parent cb0aa27 commit 7ae8935
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
resp=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=pypi")
oidc_token=$(jq -c "{\"token\": \"(.value)\"} | @json" <<< "${resp}")
echo "OIDC @oidc_token"
#oidc_token=$(jq '.value' <<< "${resp}")
#oidc_token=$(jq -c "{\"token\": \"\(.value)\"} | @json" <<< "${resp}")
#echo "OIDC @oidc_token"
oidc_token=$(jq -r '.value' <<< "${resp}")
resp=$(curl -X POST https://pypi.org/_/oidc/github/mint-token -d $oidc_token)
resp=$(curl -X POST https://pypi.org/_/oidc/github/mint-token -d "{\"token\":\"${oidc_token}\"}")
api_token=$(jq -r '.token' <<< "${resp}")
poetry publish -u __token__ -p ${api_token}

0 comments on commit 7ae8935

Please sign in to comment.