Skip to content

Commit b490d02

Browse files
committed
Add PyPI publish workflow
1 parent eb9e93b commit b490d02

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Diff for: .github/workflows/publish-to-pypi.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Publish Python distribution to PyPI"
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
build-and-publish:
10+
name: "Publish Python distribution to PyPI"
11+
runs-on: ubuntu-20.04
12+
13+
steps:
14+
- uses: actions/checkout@master
15+
- name: Set up Python 3.7
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: 3.7
19+
20+
- name: "Build Python package"
21+
run: |
22+
python3 -m pip install --user --upgrade setuptools wheel
23+
python3 setup.py sdist bdist_wheel
24+
25+
- name: Publish distribution to PyPI
26+
uses: pypa/gh-action-pypi-publish@master
27+
with:
28+
password: ${{ secrets.bin2hpm_pypi }}

0 commit comments

Comments
 (0)