Skip to content

Commit 65e1726

Browse files
authored
Create pypi.yml
1 parent 7c3e16f commit 65e1726

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Upload Python Package
2+
3+
# on:
4+
# release:
5+
# types: [created]
6+
7+
on:
8+
push:
9+
branches:
10+
- dciborow-patch-1
11+
- release/*
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: '3.x'
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install setuptools wheel twine
26+
python setup.py sdist bdist_wheel
27+
28+
- name: Publish package
29+
uses: pypa/gh-action-pypi-publish@release/v1
30+
with:
31+
user: __token__
32+
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)