Skip to content

Commit ca0525a

Browse files
authored
Workflow for PyPI deploy (#238)
1 parent 3a26d28 commit ca0525a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/pypi.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: PyPI deploy
2+
on:
3+
release:
4+
types:
5+
- created
6+
7+
jobs:
8+
build-and-publish:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: [3.9]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install dependencies
21+
run: python -m pip install --upgrade pip setuptools wheel
22+
- name: Create the source distribution
23+
run: python setup.py sdist
24+
- name: Publish distribution to PyPI
25+
uses: pypa/gh-action-pypi-publish@master
26+
with:
27+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)