Skip to content

Commit 4238e1c

Browse files
committed
Change to safe publishing for PyPI
1 parent e24f65f commit 4238e1c

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/pypi-publish.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
name: Build and publish Python 🐍 package 📦 to PyPI
4141
needs: build
4242
runs-on: ubuntu-latest
43-
# Next 5 lines prepare for trusted publishing: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
44-
# environment:
45-
# name: pypi-release
46-
# url: https://pypi.org/p/linkml-runtime
47-
# permissions:
48-
# id-token: write # this permission is mandatory for trusted publishing
43+
# Uses trusted publishing. https://docs.pypi.org/trusted-publishers/adding-a-publisher/
44+
environment:
45+
name: pypi-release
46+
url: https://pypi.org/p/linkml-runtime
47+
permissions:
48+
id-token: write # This permission is mandatory for trusted publishing.
4949
steps:
5050
- name: Download built distribution
5151
uses: actions/download-artifact@v4.3.0
@@ -57,5 +57,4 @@ jobs:
5757
if: github.event_name == 'release'
5858
uses: pypa/gh-action-pypi-publish@v1.12
5959
with:
60-
password: ${{ secrets.pypi_password }}
61-
# verbose: true
60+
verbose: true

0 commit comments

Comments
 (0)