Skip to content

Commit 75e9192

Browse files
Add workflow for publishing to PyPI
1 parent 344df35 commit 75e9192

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# From https://www.seanh.cc/2022/05/21/publishing-python-packages-from-github-actions/
2+
3+
name: Publish to PyPI.org
4+
on:
5+
release:
6+
types: [published]
7+
jobs:
8+
pypi:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- run: python3 -m pip install --upgrade build && python3 -m build
16+
- name: Publish package
17+
uses: pypa/gh-action-pypi-publish@release/v1
18+
with:
19+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)