Skip to content

Update main.yml, swapped back to ubuntu-latest #23

Update main.yml, swapped back to ubuntu-latest

Update main.yml, swapped back to ubuntu-latest #23

Workflow file for this run

name: Publish Py Protein Inference to PyPI and TestPyPI
on: [push]
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install wheel
run: >-
pip install wheel
- name: Build a binary wheel and a source tarball
run: >-
python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}