Skip to content

Note Python 3.12 in classifiers #113

Note Python 3.12 in classifiers

Note Python 3.12 in classifiers #113

Workflow file for this run

name: publish
concurrency: publish
on:
push:
branches:
- trunk
tags:
- "**"
jobs:
pypi-publish:
runs-on: ubuntu-latest
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
# setuptools_scm needs the git history
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install pypa/build
run: >-
pip install --user
build
- name: Build a binary wheel and a source tarball
run: >-
python -m build
--sdist
--wheel
--outdir dist/
- name: Publish distribution πŸ“¦ to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1.8
with:
repository-url: https://test.pypi.org/legacy/
- name: Publish distribution πŸ“¦ to PyPI
uses: pypa/gh-action-pypi-publish@release/v1.8
with:
password: ${{ secrets.PYPI_API_TOKEN }}