Skip to content

Commit 4cd85ee

Browse files
committed
Update publish workflow to use trusted publising
1 parent a184674 commit 4cd85ee

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,15 @@ jobs:
5555
publish-to-pypi:
5656
needs: [build-sdist, build-wheels]
5757
runs-on: ubuntu-latest
58+
environment:
59+
name: pypi
60+
url: https://pypi.org/p/ms2pip
61+
permissions:
62+
id-token: write
5863
steps:
5964
- uses: actions/download-artifact@v2
6065
with:
6166
name: dist
6267
path: dist
63-
- uses: pypa/gh-action-pypi-publish@release/v1
64-
with:
65-
user: ${{ secrets.PYPI_USERNAME }}
66-
password: ${{ secrets.PYPI_PASSWORD }}
68+
- name: Publish to PyPI
69+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)