File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,23 +57,22 @@ jobs:
5757 steps :
5858 - uses : actions/checkout@v6
5959
60- - name : Setup Python
60+ - name : Set up Python
6161 uses : actions/setup-python@v6
6262 with :
63- python-version : " 3.x "
63+ python-version : " 3.11 "
6464
6565 - name : Check release
6666 id : check_release
6767 run : |
68- python -m pip install poetry githubrelease httpx==0.18.2 autopub twine wheel
69- echo "release=$( autopub check)" >> $GITHUB_OUTPUT
68+ python -m pip install autopub[github] twine wheel
69+ autopub check
7070
7171 - name : Publish
72- if : ${{ steps.check_release.outputs.release =='' }}
72+ if : ${{ steps.check_release.outputs.autopub_release =='true ' }}
7373 env :
74- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
74+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7575 TWINE_USERNAME : " __token__"
7676 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
7777 run : |
78- git remote set-url origin https://$GITHUB_TOKEN@github.com/${{ github.repository }}
7978 autopub deploy
You can’t perform that action at this time.
0 commit comments