Skip to content

Commit 0dd7a58

Browse files
authored
New PyPI uploader workflow required (#258)
1 parent 878134a commit 0dd7a58

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/python-somacore.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ jobs:
7777
&& github.event.action == 'published'
7878
&& startsWith(github.event.release.tag_name, 'python-')
7979
runs-on: ubuntu-latest
80+
# Configuration: https://github.com/single-cell-data/SOMA/settings/environments
81+
environment: pypi
82+
# Configuration: https://pypi.org/manage/project/somacore/settings/publishing
83+
permissions:
84+
id-token: write
8085
steps:
8186
- uses: actions/checkout@v4
8287
- uses: actions/setup-python@v5
@@ -89,7 +94,3 @@ jobs:
8994
pip install --upgrade build pip wheel setuptools setuptools-scm
9095
python -m build .
9196
- uses: pypa/gh-action-pypi-publish@release/v1
92-
with:
93-
user: __token__
94-
password: ${{ secrets.PYPI_API_TOKEN }}
95-
packages_dir: dist

0 commit comments

Comments
 (0)