Production Pypi #23
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: Production Pypi | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
pypi: | |
name: Pypi | |
runs-on: ubuntu-latest | |
if: "!contains(github.ref, '-')" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.9 | |
- name: Installing building dependencies | |
run: | | |
python -m pip install build twine wheel setuptools_scm setuptools | |
- name: Build the project | |
run: | | |
python -m build | |
- name: Publish a Python distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
packages_dir: dist/ |