Skip to content

Commit 3bacbd6

Browse files
authored
Merge pull request #68 from fema-ffrd/feature/pypi-trusted-publisher
update release workflow to use PyPI Trusted Publisher auth
2 parents 2607d01 + ed3cfe5 commit 3bacbd6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
release:
1313
name: release
1414
runs-on: ubuntu-latest
15+
permissions:
16+
id-token: write
1517
steps:
1618
- uses: actions/checkout@v4
1719
- name: Set up Python
@@ -21,13 +23,9 @@ jobs:
2123
- name: Install release dependencies
2224
run: |
2325
python -m pip install --upgrade pip
24-
pip install build twine
26+
pip install build
2527
- name: Build wheel and source distribution
2628
run: |
2729
python -m build
2830
- name: Publish package
29-
env:
30-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
31-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
32-
run: |
33-
twine upload dist/*
31+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)