Skip to content

Commit 8ceab19

Browse files
committed
Add gh workflow to auto publish releases
1 parent 4def779 commit 8ceab19

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/publish_package.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: publish package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.x'
16+
- name: install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install setuptools wheel twine
20+
- name: build and publish
21+
env:
22+
TWINE_REPOSITORY: pypi
23+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME_BURTON }}
24+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD_BURTON }}
25+
run: |
26+
python setup.py sdist bdist_wheel
27+
twine upload dist/*

0 commit comments

Comments
 (0)