Skip to content

Publish Python 🐍 distributions 📦 #28

Publish Python 🐍 distributions 📦

Publish Python 🐍 distributions 📦 #28

Workflow file for this run

# https://clownote.github.io/2021/01/16/blog/PyPiGitHubActions/
name: Publish Python 🐍 distributions 📦
on:
workflow_dispatch:
jobs:
build-n-publish:
name: 🐍📦
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- 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@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}