Skip to content

Commit 390895f

Browse files
committed
2 parents d04e9ea + 8ac16c9 commit 390895f

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: Publish
2+
3+
on:
4+
push:
5+
tags: 'v*'
6+
7+
jobs:
8+
build-and-publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout package
12+
uses: actions/checkout@v3
13+
- name: Install build and publish dependencies
14+
run: |
15+
pip3 install --upgrade build
16+
- name: Build package
17+
run: |
18+
python3 -m build
19+
- name: Publish to PyPI
20+
uses: pypa/gh-action-pypi-publish@release/v1
21+
with:
22+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)