From ebe8439934d81d9ec7e359068dc03bd05576bdfe Mon Sep 17 00:00:00 2001 From: Joongi Kim Date: Thu, 4 May 2023 14:12:27 +0900 Subject: [PATCH] ci: There is no need to do it manually... --- .github/workflows/default.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index d88cba4..a1e1c43 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -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 }}