Skip to content

Commit 7c62ab5

Browse files
author
Kevin Paul
authored
Merge pull request #81 from kmpaul/main
Add GitHub workflow for automated PyPI release
2 parents 95e54e7 + 0270d23 commit 7c62ab5

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: Build distribution
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: "ubuntu-latest"
8+
9+
steps:
10+
- name: Checkout source
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Python 3.8
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.8
17+
18+
- name: Install pypa/build
19+
run: python -m pip install build wheel pyyaml
20+
21+
- name: Build distributions
22+
shell: bash -l {0}
23+
run: python setup.py sdist bdist_wheel
24+
25+
- name: Publish package to PyPI
26+
if: github.repository == 'dask/dask-mpi' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
27+
uses: pypa/gh-action-pypi-publish@master
28+
with:
29+
user: __token__
30+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)