27 lines
615 B
YAML
27 lines
615 B
YAML
name: Publish
|
|
|
|
on: [workflow_dispatch]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
publish_pytest:
|
|
uses: ./.github/workflows/pytest.yml
|
|
pypi_publish:
|
|
runs-on: ubuntu-latest
|
|
needs: [ publish_pytest ]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
- name: Build sdist
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.12"
|
|
- name: Install build
|
|
run: pip install build
|
|
- name: Build a binary wheel and a source tarball
|
|
run: python -m build
|
|
- name: Publish to PyPI
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|