Skip to content

Commit 36bfd77

Browse files
Update publish.yml
Restored last working version
1 parent c2be52b commit 36bfd77

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Publish to PyPI
22
on:
33
release:
44
types: [published]
5-
65
jobs:
76
deploy:
87
runs-on: ubuntu-latest
@@ -17,14 +16,13 @@ jobs:
1716
- name: Install dependencies
1817
run: |
1918
python -m pip install --upgrade pip
20-
pip install build twine
19+
pip install build
2120
2221
- name: Build package
2322
run: python -m build
2423

2524
- name: Publish to PyPI
26-
run: |
27-
python -m twine upload dist/*
28-
env:
29-
TWINE_USERNAME: __token__
30-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
25+
uses: pypa/gh-action-pypi-publish@release/v1
26+
with:
27+
password: ${{ secrets.PYPI_API_TOKEN }}
28+
# Remove attestations line if it exists

0 commit comments

Comments
 (0)