Skip to content

Commit 80e42d0

Browse files
committed
Add deploy workflow
1 parent 8efe9ec commit 80e42d0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
10+
pypi:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Setup Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.11
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip setuptools wheel build
21+
- name: Build
22+
run: |
23+
python -m build
24+
- name: Publish
25+
if: success()
26+
uses: pypa/[email protected]
27+
with:
28+
user: __token__
29+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)