Skip to content

Production Pypi

Production Pypi #22

Workflow file for this run

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/