Files
kwcode/.github/workflows/publish.yml
Val-sss 6f35ddbed9 fix: CI add --skip-existing and bump to v1.0.9
v1.0.8 was already uploaded manually, CI got 400 Bad Request.
Add --skip-existing flag and bump version for next release.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-30 12:42:08 +08:00

36 lines
681 B
YAML

name: Publish to PyPI
on:
push:
tags:
- "v*"
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build tools
run: pip install "build" "twine" "setuptools>=68.0,<78.0"
- name: Build package
run: python -m build
- name: Check package
run: twine check dist/*
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/* --verbose --skip-existing