diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 671b7a3..d47e665 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,6 +66,11 @@ jobs: - run: npm run prettier + - name: Build MCPB bundle (pdf-server) + if: runner.os == 'Linux' && matrix.name == 'Linux x64' + run: npx -y @anthropic-ai/mcpb pack + working-directory: examples/pdf-server + e2e: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 5852443..d969585 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -138,3 +138,35 @@ jobs: run: npm publish --workspace examples/${{ matrix.example }} --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_SECRET }} + + publish-mcpb: + runs-on: ubuntu-latest + if: github.event_name == 'release' + environment: Release + needs: [publish-examples] + + permissions: + contents: write + + steps: + - uses: actions/checkout@v6 + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + - uses: actions/setup-node@v6 + with: + node-version: "22" + cache: npm + - run: npm ci + + - name: Build pdf-server + run: npm run build --workspace examples/pdf-server + + - name: Pack MCPB bundle + run: npx -y @anthropic-ai/mcpb pack + working-directory: examples/pdf-server + + - name: Upload MCPB to release + run: gh release upload "${{ github.event.release.tag_name }}" examples/pdf-server/*.mcpb --clobber + env: + GH_TOKEN: ${{ github.token }} diff --git a/.gitignore b/.gitignore index 9c6a137..abb7660 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,7 @@ intermediate-findings/ playwright-report/ test-results/ __pycache__/ -*.pyc \ No newline at end of file +*.pyc + +# MCPB bundles (built artifacts) +*.mcpb \ No newline at end of file