Skip to content

Commit a1e1943

Browse files
authored
added basic deployment automation
1 parent 4e6eff6 commit a1e1943

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: deploy-to-pypi
2+
3+
on:
4+
push:
5+
branches: [release]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: checkout
13+
uses: actions/checkout@master
14+
- uses: actions/setup-python@v2
15+
with:
16+
python-version: '3.7.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
17+
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
18+
- name: compile
19+
run: |
20+
python3 setup.py bdist_wheel --universal
21+
- name: Publish a Python distribution to PyPI
22+
uses: pypa/gh-action-pypi-publish@release/v1
23+
with:
24+
user: ${{secrets.PYPI_API_USERNAME}}
25+
password: ${{ secrets.PYPI_API_PASSWORD }}
26+
verbose: true

0 commit comments

Comments
 (0)