Skip to content

fix: fix PR issues #278

fix: fix PR issues

fix: fix PR issues #278

Workflow file for this run

# Publish to PyPI in case of releasing
on:
push:
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install pypa/build
run: |
python -m pip install build --user
- name: Generation proto files
run: |
python setup.py generate_proto
- name: Build a binary wheel and a source tarball
run: |
python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.SECRETS_TEST_PYPI_API_TOKEN }}