Skip to content

Merge pull request #50 from StanfordBioinformatics/dependabot/pip/azu… #15

Merge pull request #50 from StanfordBioinformatics/dependabot/pip/azu…

Merge pull request #50 from StanfordBioinformatics/dependabot/pip/azu… #15

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 }}