Chore: Update pre-commit hooks #24
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: PyPI release | |
# yamllint disable-line rule:truthy | |
on: push | |
jobs: | |
publish: | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Configure Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Build package distribution files | |
run: >- | |
pipx run tox -e clean,build | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |