Skip to content

Commit b08587f

Browse files
committed
Add deploy action
1 parent a2b6900 commit b08587f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
deploy:
9+
name: Deploy to PyPI
10+
if: startsWith(github.ref, 'refs/tags')
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Setup python
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: '3.8'
17+
18+
- name: Check out code
19+
uses: actions/checkout@v3
20+
21+
- name: Build the library
22+
env:
23+
PYVER: ${{ matrix.version }}
24+
run: python3 setup.py sdist
25+
26+
- uses: pypa/gh-action-pypi-publish@release/v1
27+
with:
28+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)