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 saturn-client to PyPI | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build-and-publish: | |
name: Build and publish saturn-client to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install build dependencies | |
run: >- | |
python -m | |
pip install | |
setuptools | |
wheel | |
--upgrade | |
--user | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
python | |
setup.py | |
sdist | |
bdist_wheel | |
- name: Publish distribution to PyPI | |
if: startsWith(github.event.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@v1.3.0 | |
with: | |
# Password is set in GitHub UI to an API secret for pypi | |
user: __token__ | |
password: ${{ secrets.pypi_password }} |