Release 3.1.0.1 - th2 5191 cherry pick (#94) #23
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: Build and publish Python distributions to PyPI | |
on: | |
push: | |
branches: | |
- master | |
- release-* | |
jobs: | |
build-n-publish: | |
name: Build and Python distributions to PyPI | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Wait for tests to succeed | |
uses: lewagon/[email protected] | |
with: | |
ref: ${{ github.ref }} | |
running-workflow-name: Build and Python distributions to PyPI | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
wait-interval: 10 | |
allowed-conclusions: success | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
# pip install importlib importlib-metadata | |
- name: Build package | |
run: | | |
python setup.py sdist | |
- name: Publish distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_PASSWORD }} | |
repository_url: https://upload.pypi.org/legacy/ |