File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 11name : Upload Python Package
22
33on :
4+ workflow_dispatch :
45 release :
56 types : [created]
67
78jobs :
89 deploy :
910 runs-on : ubuntu-latest
11+ permissions :
12+ # IMPORTANT: this permission is mandatory for trusted publishing
13+ id-token : write
1014 steps :
1115 - uses : actions/checkout@v3
1216 with :
@@ -27,13 +31,12 @@ jobs:
2731 pip install mkdocs-material
2832 pip install .
2933 pytest
30- - name : Build and publish
31- env :
32- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
33- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
34+ - name : Build package
3435 run : |
3536 python setup.py sdist bdist_wheel
36- twine upload dist/*
37+ # See https://docs.pypi.org/trusted-publishers/using-a-publisher/
38+ - name : Publish package distributions to PyPI
39+ uses : pypa/gh-action-pypi-publish@release/v1
3740 - name : Deploy mkdocs site
3841 run : |
3942 mkdocs gh-deploy --force
You can’t perform that action at this time.
0 commit comments