Skip to content

Commit 7bac904

Browse files
authored
Add trusted publishing to PyPI
1 parent ce96493 commit 7bac904

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
id-token: write
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12"
20+
- name: Build the package
21+
run: |
22+
python -m pip install --upgrade build
23+
python -m build
24+
- name: Publish to PyPI
25+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)