Skip to content

Commit

Permalink
Merge pull request #39 from StanfordBioinformatics/feature/pypi
Browse files Browse the repository at this point in the history
Add pipeline for deploying to PyPi
  • Loading branch information
amirstanford authored Sep 18, 2021
2 parents e2a19ae + e278d7c commit 5e68433
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Upload Package to PyPI

on:
release:
types: [ published ]
push:
branches:
- main

jobs:
pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install build
run: python -m pip install build
- name: Python dist
run: python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="https://github.com/StanfordBioinformatics/Hummingbird/blob/master/docs/hummingbird_2_2x.png" width="200" align="right">
<img src="https://github.com/StanfordBioinformatics/Hummingbird/blob/main/docs/hummingbird_2_2x.png" width="200" align="right">

# Hummingbird: Efficient Performance Prediction for Executing Genomic Applications in the Cloud #

Expand Down

0 comments on commit 5e68433

Please sign in to comment.