Skip to content

Commit 171f125

Browse files
authored
Add automatic publishing to PyPI
1 parent df4e344 commit 171f125

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build and publish on PyPI
2+
3+
on:
4+
release:
5+
types: [created]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Publish with flit
18+
env:
19+
FLIT_USERNAME: ${{ secrets.pypi_username }}
20+
FLIT_PASSWORD: ${{ secrets.pypi_password }}
21+
FLIT_INDEX_URL: https://upload.pypi.org/legacy/
22+
run: pipx run flit publish

0 commit comments

Comments
 (0)