Skip to content

publish

publish #47

Workflow file for this run

name: PyPI Deployment
on:
release:
types: [published]
repository_dispatch:
types: [publish]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install pypa/build
run: >-
python -m
pip install --user setuptools==66.0.0 wheel==0.38.4 twine==4.0.2
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}