feat: Automate PyPI publishing via GitHub Actions
- Add PyPI publish job to release workflow (runs after GoReleaser) - Add manual TestPyPI workflow for testing uploads - Update RELEASING.md: - Document automated PyPI publishing - Fix go install vs brew conflicts - Simplify Homebrew upgrade instructions - Created bd-87 for epic command daemon support - Closed bd-86 (merge transactions) as won't fix Amp-Thread-ID: https://ampcode.com/threads/T-ea1982a4-56dc-482a-8c00-00963623cd64 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
28
.github/workflows/release.yml
vendored
28
.github/workflows/release.yml
vendored
@@ -34,3 +34,31 @@ jobs:
|
||||
args: release --clean
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
publish-pypi:
|
||||
runs-on: ubuntu-latest
|
||||
needs: goreleaser # Run after Go release succeeds
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install uv
|
||||
run: pip install uv
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
cd integrations/beads-mcp
|
||||
uv build
|
||||
|
||||
- name: Publish to PyPI
|
||||
env:
|
||||
TWINE_USERNAME: __token__
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
||||
run: |
|
||||
cd integrations/beads-mcp
|
||||
uv tool run twine upload dist/*
|
||||
|
||||
32
.github/workflows/test-pypi.yml
vendored
Normal file
32
.github/workflows/test-pypi.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Test PyPI Publish
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Manual trigger only
|
||||
|
||||
jobs:
|
||||
test-publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install uv
|
||||
run: pip install uv
|
||||
|
||||
- name: Build package
|
||||
run: |
|
||||
cd integrations/beads-mcp
|
||||
uv build
|
||||
|
||||
- name: Publish to TestPyPI
|
||||
env:
|
||||
TWINE_USERNAME: __token__
|
||||
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
||||
run: |
|
||||
cd integrations/beads-mcp
|
||||
uv tool run twine upload --repository testpypi dist/*
|
||||
Reference in New Issue
Block a user