Skip to content

Commit 06aebda

Browse files
committed
.github/workflows/release: Add release action
1 parent 96b5c27 commit 06aebda

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: pypi-publish
2+
on:
3+
release:
4+
types: [created]
5+
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
# https://github.com/actions/setup-python
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: '3.x'
16+
- name: Install dependencies
17+
run: |
18+
pip install -r requirements.txt -r requirements-dev.txt
19+
pip install .
20+
pip install setuptools wheel twine
21+
- uses: rkdarst/action-verify-python-version@main
22+
- name: Build
23+
run: |
24+
python setup.py sdist bdist_wheel
25+
#- name: Upload to PyPI
26+
# env:
27+
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28+
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29+
# run: |
30+
# twine upload dist/*

0 commit comments

Comments
 (0)