Skip to content

Commit 0477a8d

Browse files
committed
adding release worklow
Signed-off-by: vsoch <[email protected]>
1 parent 1daab24 commit 0477a8d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-20.04
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Install
15+
run: conda create --quiet --name spython twine
16+
17+
- name: Install dependencies
18+
run: |
19+
export PATH="/usr/share/miniconda/bin:$PATH"
20+
source activate spython
21+
pip install -e .
22+
pip install setuptools wheel twine
23+
- name: Build and publish
24+
env:
25+
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
26+
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }}
27+
run: |
28+
export PATH="/usr/share/miniconda/bin:$PATH"
29+
source activate spython
30+
python setup.py sdist bdist_wheel
31+
twine upload dist/*

0 commit comments

Comments
 (0)