Skip to content

Publish Package to PyPI #16

Publish Package to PyPI

Publish Package to PyPI #16

Workflow file for this run

name: Publish Package to PyPI
on:
release:
types:
- published
jobs:
build-and-publish:
if: github.repository == 'ni/niflexlogger-automation-python'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install setuptools and other tools
run: python3 -m pip install setuptools wheel twine grpcio grpcio-tools
- name: Build packages
run: python3 setup.py bdist_wheel
- name: Publish distribution to PyPI
if: github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}