Skip to content

Commit 664b4ad

Browse files
authored
Update release action for trusted publishing (#99)
* empty commit for v1.1.10.post2 * #94 - PyPI trusted publishing
1 parent 095fd95 commit 664b4ad

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/upload_package.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ on:
1414
required: false
1515

1616
jobs:
17-
build:
17+
build-n-publish:
18+
name: Build and publish neatnet to PyPI
1819
runs-on: ubuntu-latest
20+
permissions:
21+
id-token: write # MANDATORY for trusted publishing to PyPI
22+
contents: write # MANDATORY for the Github release action
23+
1924
steps:
2025
- uses: actions/checkout@v4
2126
with:
@@ -28,6 +33,7 @@ jobs:
2833

2934
- name: Build source and wheel distributions
3035
run: |
36+
python -m pip install --upgrade pip
3137
python -m pip install --upgrade build twine
3238
python -m build
3339
twine check --strict dist/*
@@ -44,6 +50,3 @@ jobs:
4450
4551
- name: Publish distribution 📦 to PyPI
4652
uses: pypa/gh-action-pypi-publish@release/v1
47-
with:
48-
user: __token__
49-
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)