Update config-local properties and community #99
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: PyPi Conductor-client update | |
on: | |
push: | |
# Publish `master` as Docker `latest` image. | |
branches: | |
- master | |
# Publish `vfrinx2.0.1` tags as releases. | |
tags: | |
- vfrinx2* | |
workflow_dispatch: | |
jobs: | |
build-n-publish-v2: | |
name: Build and publish frinx conductor client | |
runs-on: ubuntu-18.04 | |
timeout-minutes: 10 | |
defaults: | |
run: | |
working-directory: ./polyglot-clients/python | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Check package version | |
run: | | |
grep -q "version = '2." setup.py | |
- name: Set up Python 3.6 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.6' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine | |
- name: Build and publish | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | |
run: | | |
python setup.py sdist bdist_wheel | |
twine upload dist/* |