Skip to content

Bump pypa/gh-action-pypi-publish in /.github/workflows #38

Bump pypa/gh-action-pypi-publish in /.github/workflows

Bump pypa/gh-action-pypi-publish in /.github/workflows #38

Workflow file for this run

name: Deploy to PyPi package repository
on: push
jobs:
deploy:
name: Deploy graphANNIS package
runs-on: ubuntu-20.04
# Only run Job on tagged commits that start with "v"
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Checkout
uses: actions/checkout@v1
- name: Install dependencies
run: pip install cffi networkx setuptools wheel
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
password: ${{ secrets.pypi_password }}