Skip to content

chore: Add support for python 3.13 #34

chore: Add support for python 3.13

chore: Add support for python 3.13 #34

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
tags:
- "[0-9].[0-9]+.[0-9]+"
- "[0-9].[0-9]+.[0-9]+-pre[0-9]?"
jobs:
publish:
name: Release to GitHub and PyPI
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: "**/pyproject.toml"
- run: pip install hatch
- name: Build Package
run: hatch build
- name: Publish Release Notes
id: release
uses: softprops/action-gh-release@v2
with:
files: |
./dist/*.whl
./dist/*.tar.gz
prerelease: ${{ contains(github.ref, '-pre') }}
generate_release_notes: ${{ !contains(github.ref, '-pre') }}
- name: Publish Distribution Package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}