Skip to content

Commit 998ec1d

Browse files
committed
Add workflow to publish lib to pypi
1 parent 7a9a38c commit 998ec1d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/pypi.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Push to PyPI
2+
3+
on:
4+
release:
5+
types: [released, prereleased]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.8
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip build
20+
- name: Build the servicex wheel
21+
env:
22+
servicex_version: ${{ github.ref }}
23+
run: |
24+
python -m build --sdist --wheel
25+
- name: Publish servicex to PyPI
26+
uses: pypa/[email protected]
27+
with:
28+
user: __token__
29+
password: ${{ secrets.pypi_password_servicex }}
30+

0 commit comments

Comments
 (0)