Skip to content

Commit fe16e67

Browse files
committed
ci: release to pypi by tag push
1 parent 52d51eb commit fe16e67

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/release.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Source Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]*'
7+
jobs:
8+
pypi:
9+
name: Release To PyPi
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: '3.x'
17+
- name: Install publishing dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install pytest setuptools wheel twine scikit-build
21+
22+
- name: Build and publish
23+
run: |
24+
git submodule update --init
25+
python setup.py sdist
26+
twine upload --skip-existing -u __token__ -p ${{ secrets.PYPI_TOKEN }} dist/*

0 commit comments

Comments
 (0)