Merge pull request #86 from funkelab/refactor_for_editing #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
tags: ["*"] | |
workflow_dispatch: | |
jobs: | |
build-n-publish: | |
name: Build and publish Python 🐍 distributions 📦 to PyPI | |
runs-on: ubuntu-latest | |
if: contains(github.ref, 'tags') | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: Build a binary wheel and a source tarball | |
run: | | |
python -m pip install -U pip | |
python -m pip install -U setuptools setuptools_scm build | |
python -m build --sdist --wheel --outdir dist/ | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
- uses: softprops/action-gh-release@v2 | |
with: | |
generate_release_notes: true |