Skip to content

Commit fffc374

Browse files
danielginesclaude
andcommitted
ci: add workflow_dispatch trigger for manual PyPI publish
The release.yml only triggered publish via release-please output, making manual v1.0.0 publish impossible. Add workflow_dispatch with a separate publish-manual job. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d821ced commit fffc374

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Release
33
on:
44
push:
55
branches: [master]
6+
workflow_dispatch:
7+
inputs:
8+
publish:
9+
description: "Publish to PyPI (skip release-please)"
10+
type: boolean
11+
default: true
612

713
permissions:
814
contents: write
@@ -11,6 +17,7 @@ permissions:
1117

1218
jobs:
1319
release-please:
20+
if: ${{ github.event_name == 'push' }}
1421
runs-on: ubuntu-latest
1522
outputs:
1623
release_created: ${{ steps.release.outputs.release_created }}
@@ -49,3 +56,29 @@ jobs:
4956

5057
- name: Publish to PyPI
5158
uses: pypa/gh-action-pypi-publish@release/v1
59+
60+
publish-manual:
61+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish }}
62+
runs-on: ubuntu-latest
63+
environment: pypi
64+
65+
steps:
66+
- uses: actions/checkout@v4
67+
with:
68+
submodules: recursive
69+
70+
- uses: astral-sh/setup-uv@v4
71+
with:
72+
version: "latest"
73+
74+
- name: Set up Python
75+
run: uv python install 3.12
76+
77+
- name: Build package
78+
run: uv build
79+
80+
- name: Verify wheel contents
81+
run: python -m zipfile -l dist/*.whl | grep -q "schemas/portable-ai-memory.schema.json"
82+
83+
- name: Publish to PyPI
84+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)