Skip to content

Commit c788d9f

Browse files
committed
PyPI automate
1 parent 8d17968 commit c788d9f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pypi_dist.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Upload Python Package (SDIST)
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: "3.7"
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
python setup.py sdist
20+
- name: Publish distribution to PyPI
21+
if: startsWith(github.ref, 'refs/tags')
22+
uses: pypa/gh-action-pypi-publish@master
23+
with:
24+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)