ups #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: [push, pull_request] | |
jobs: | |
deploy: | |
runs-on: "ubuntu-latest" | |
if: github.repository == 'Kapoorlabs-CAPED/vollseg-napari' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install build dependencies | |
run: python -m pip install build wheel | |
- name: Build distributions | |
shell: bash -l {0} | |
run: python setup.py sdist bdist_wheel | |
- name: Publish package to PyPI | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_PASSWORD }} |