Skip to content

Commit bfb0f58

Browse files
committed
Create publish.yml
1 parent b9ad4d9 commit bfb0f58

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write # Required for OIDC authentication with PyPI
12+
contents: read
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.x'
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install build twine wheel
26+
27+
- name: Build package
28+
run: python -m build
29+
30+
- name: Publish package
31+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)