Skip to content

Commit

Permalink
Merge pull request #130 from griffithlab/automate-pypi-release
Browse files Browse the repository at this point in the history
add github action to make pypi release when a release is made on github
  • Loading branch information
korikuzma authored Sep 28, 2022
2 parents 0e75b30 + 5fbc61b commit 6586f74
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pypi_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Make PyPI release

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI }}
run: |
python3 setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit 6586f74

Please sign in to comment.