Skip to content

Commit

Permalink
adding github publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf committed Apr 2, 2020
1 parent a1c8b58 commit 2d426a1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/actions/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: continuous-integration

on: [push, pull_request]

jobs:

publish:

name: Publish to PyPi
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Build package
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Publish
uses: pypa/gh-action-pypi-publish@v1.1.0
with:
user: __token__
password: ${{ secrets.PYPI_KEY }}

0 comments on commit 2d426a1

Please sign in to comment.