File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 2323jobs :
2424 publish :
2525 runs-on : ubuntu-22.04
26+ environment :
27+ name : publish
28+ url : https://pypi.org/pydvl
2629 concurrency :
2730 group : publish
31+ permissions :
32+ id-token : write
2833 steps :
2934 - name : Checking out last commit in release
3035 if : ${{ github.event_name != 'workflow_dispatch' }}
5459 # Make the version available as env variable for next steps
5560 echo CURRENT_VERSION=$CURRENT_VERSION >> $GITHUB_ENV
5661 shell : bash
62+ - name : Build dist
63+ run : |
64+ python setup.py sdist bdist_wheel
65+ - name : Publish to PyPI
66+ uses : pypa/gh-action-pypi-publish@release/v1
67+ with :
68+ verbose : true
69+ print-hash : true
5770 - name : Deploy Docs
5871 uses : ./.github/actions/deploy-docs
5972 with :
6376 email : ${{ env.GITHUB_BOT_EMAIL }}
6477 username : ${{ env.GITHUB_BOT_USERNAME }}
6578 set-default : ' true'
66- - name : Build and publish to PyPI
67- env :
68- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
69- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
70- run : |
71- python setup.py sdist bdist_wheel
72- twine upload --verbose --non-interactive dist/*
Original file line number Diff line number Diff line change @@ -18,4 +18,3 @@ pytest-sugar
1818pytest-rerunfailures
1919nbmake
2020wheel
21- twine == 5.1.1
You can’t perform that action at this time.
0 commit comments