Skip to content

Commit

Permalink
Add github action for pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
bpepple committed Aug 1, 2020
1 parent 871d848 commit 028a939
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release to PyPI

on:
release:
types: [published]

jobs:
build:
name: Build dist & publish
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'

- name: Install build dependencies & build
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 028a939

Please sign in to comment.