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
# MIT License | |
# | |
# Copyright (c) 2018 sclorg team at Red Hat | |
# | |
# Upload a Python package when a release is created | |
# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows | |
name: Publish Python 🐍 distributions 📦 to PyPI | |
on: | |
release: | |
types: [created] | |
jobs: | |
build-n-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- name: Build a source tarball and a binary wheel | |
# https://pypa-build.readthedocs.io | |
run: | | |
python -m pip install build | |
python -m build --sdist --wheel | |
- name: Publish 📦 to PyPI | |
# https://github.com/pypa/gh-action-pypi-publish | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
# secrets.PYPI_API_TOKEN is set to usercont-release-bot user token | |
password: ${{ secrets.PYPI_CCI_SUITE_TOKEN }} | |
verbose: true |