Skip to content

Commit 38c5972

Browse files
hbq1OptaxDev
authored and
OptaxDev
committed
Update pypi workflow.
PiperOrigin-RevId: 731244260
1 parent 29e6549 commit 38c5972

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/pypi-publish.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
1012
steps:
1113
- uses: actions/checkout@v4
1214
- name: Set up Python
@@ -26,10 +28,8 @@ jobs:
2628
then
2729
echo "package ver. ($PACKAGE_VER) != release ver. ($RELEASE_VER)"; exit 1
2830
fi
29-
- name: Build and publish
30-
env:
31-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
32-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
31+
- name: Build
3332
run: |
3433
python -m build
35-
twine upload dist/*
34+
- name: Publish package distributions to PyPI
35+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)