v0.1.8 #17
Workflow file for this run
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: 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 }} |