Skip to content

Commit

Permalink
Merge pull request #164 from AllenInstitute/pypi_deploy
Browse files Browse the repository at this point in the history
actions: add publish on release action
  • Loading branch information
RussTorres authored Jul 19, 2023
2 parents 4504c10 + 4315f24 commit 842eb63
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: release_publish
on:
# workflow_dispatch:
release:
types: [published]
jobs:
pypi_publish:
name: Deploy to pypi
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2

- name: Build
run: python setup.py sdist bdist_wheel

- name: Publish to Pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 842eb63

Please sign in to comment.