We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb9e93b commit b490d02Copy full SHA for b490d02
.github/workflows/publish-to-pypi.yml
@@ -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
28
+ password: ${{ secrets.bin2hpm_pypi }}
0 commit comments