Skip to content

21.158

21.158 #16

Workflow file for this run

name: Publish to PyPi
on:
release:
types: [published]
workflow_dispatch:
jobs:
build-n-publish:
name: Build and publish Python distributions to PyPI
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.6
uses: actions/setup-python@v3
with:
python-version: "3.6"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}