File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,32 +16,11 @@ jobs:
1616 - uses : actions/setup-python@v4
1717 with :
1818 python-version : " 3.x"
19-
20- - name : deps
21- run : python -m pip install -U poetry
22-
23- - name : build
24- run : poetry build
25-
26- - name : mint API token
27- id : mint-token
28- run : |
29- # retrieve the ambient OIDC token
30- resp=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
31- "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=pypi")
32- oidc_token=$(jq '.value' <<< "${resp}")
33-
34- # exchange the OIDC token for an API token
35- resp=$(curl -X POST https://pypi.org/_/oidc/github/mint-token -d "{\"token\": \"${oidc_token}\"}")
36- api_token=$(jq '.token' <<< "${resp}")
37-
38- # mask the newly minted API token, so that we don't accidentally leak it
39- echo "::add-mask::${api_token}"
40-
41- # see the next step in the workflow for an example of using this step output
42- echo "api-token=${api_token}" >> "${GITHUB_OUTPUT}"
43-
44- - name : publish
19+ - name : Install dependencies
4520 run : |
46- poetry config pypi-token.pypi ${{ steps.mint-token.outputs.api-token }}
47- poetry publish
21+ python -m pip install --upgrade pip
22+ pip install poetry
23+ - name : Configure poetry
24+ run : poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"
25+ - name : Publish package
26+ run : poetry publish --build
Original file line number Diff line number Diff line change 1- __version__ = "1.0.3a0 "
1+ __version__ = "1.0.0 "
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " flake8-github"
3- version = " 1.0.3a0 "
3+ version = " 1.0.0 "
44description = " Flake8 formatter for GitHub Actions"
55authors = [" Max Kryvych <me@kryvych.cc>" ]
66license = " MIT License"
You can’t perform that action at this time.
0 commit comments