Skip to content

Commit

Permalink
Add github publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemonteith committed May 18, 2021
1 parent d694a2e commit 46ae39a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Dependencies for build and publish
run: pip install tox twine
- name: Build package
run: tox -e py --notest
- name: Push to pypi
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload .tox/dist/*

0 comments on commit 46ae39a

Please sign in to comment.