Skip to content

Commit

Permalink
Add publishing workflow through GH releases
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Oct 1, 2020
1 parent 3b51d02 commit 32c29a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
pull_request:
branches:
- master
release:
types: [published]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -70,3 +72,8 @@ jobs:
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'release' && github.event.action == 'published' && github.repository == 'dguest/pandamonium'
uses: pypa/[email protected]
with:
password: ${{ secrets.pypi_password }}

0 comments on commit 32c29a4

Please sign in to comment.