Skip to content

Commit

Permalink
Add publish job to CI action
Browse files Browse the repository at this point in the history
This new job publishes tagged builds to PyPI.
  • Loading branch information
jpgrayson committed Apr 7, 2020
1 parent 18c4e7a commit b31ad16
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,20 @@ jobs:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
make coverage && coveralls
publish:
name: Publish to PyPI
needs: build
runs-on: ubuntu-latest

steps:
- name: Download dist build
uses: actions/download-artifact@v1
with:
name: desmod-dist
- name: Publish dists
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit b31ad16

Please sign in to comment.