Skip to content

Commit f36143e

Browse files
authored
adding release workflow (#491)
Signed-off-by: vsoch <[email protected]> Co-authored-by: vsoch <[email protected]>
1 parent ff8cd90 commit f36143e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 shpc twine
16+
17+
- name: Install dependencies
18+
run: |
19+
export PATH="/usr/share/miniconda/bin:$PATH"
20+
source activate shpc
21+
pip install -e .
22+
pip install setuptools wheel
23+
- name: Build and publish
24+
env:
25+
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
26+
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }}
27+
run: |
28+
python setup.py sdist bdist_wheel
29+
twine upload dist/*

0 commit comments

Comments
 (0)