Skip to content

chore: merge v6.2.5 changes - organization, cleanup, and automation #2

chore: merge v6.2.5 changes - organization, cleanup, and automation

chore: merge v6.2.5 changes - organization, cleanup, and automation #2

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- 'v*'
permissions:
contents: write
id-token: write
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine ruff
- name: Lint with Ruff
run: |
ruff format --check .
ruff check .
- name: Build package
run: python -m build
- name: Check package
run: twine check dist/*
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
body_path: README.md
name: Release ${{ github.ref_name }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true