Skip to content

Commit 1cf8260

Browse files
binarykclaude
andcommitted
fix: combine release and PyPI publish into single workflow
PyPI publish now runs directly after release creation in the same workflow, avoiding the GITHUB_TOKEN cross-workflow trigger limitation. Bump to 0.15.2 to test. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9d40f28 commit 1cf8260

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write
13+
id-token: write # Required for trusted publishing to PyPI
1314

1415
steps:
1516
- uses: actions/checkout@v4
@@ -57,3 +58,24 @@ jobs:
5758
---
5859
*Auto-generated release*
5960
EOF
61+
62+
# Publish to PyPI after release is created
63+
- name: Install uv
64+
if: steps.check.outputs.skip == 'false'
65+
uses: astral-sh/setup-uv@v4
66+
with:
67+
version: "latest"
68+
69+
- name: Set up Python
70+
if: steps.check.outputs.skip == 'false'
71+
run: uv python install 3.11
72+
73+
- name: Build package
74+
if: steps.check.outputs.skip == 'false'
75+
run: uv build
76+
77+
- name: Publish to PyPI
78+
if: steps.check.outputs.skip == 'false'
79+
uses: pypa/gh-action-pypi-publish@release/v1
80+
with:
81+
skip-existing: true

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "aidocs"
3-
version = "0.15.1"
3+
version = "0.15.2"
44
description = "AI-powered documentation generator for web applications. Install docs commands into your Claude Code project."
55
readme = "README.md"
66
license = { text = "MIT" }

src/aidocs_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""AI-powered documentation generator CLI for Claude Code projects."""
22

3-
__version__ = "0.15.1"
3+
__version__ = "0.15.2"
44

55
from .cli import app
66

0 commit comments

Comments
 (0)