|
1 | | -name: Publish |
2 | | - |
3 | | -on: |
4 | | - workflow_dispatch: |
5 | | - |
6 | | -permissions: |
7 | | - contents: read |
8 | | - |
9 | | -jobs: |
10 | | - publish-crates: |
11 | | - name: Publish to crates.io |
12 | | - runs-on: ubuntu-latest |
13 | | - |
14 | | - steps: |
15 | | - - name: Checkout |
16 | | - uses: actions/checkout@v4 |
17 | | - with: |
18 | | - ref: main |
19 | | - |
20 | | - - name: Setup Rust toolchain |
21 | | - uses: dtolnay/rust-toolchain@stable |
22 | | - |
23 | | - - name: Publish webshift |
24 | | - run: cargo publish -p webshift || echo "already published, skipping" |
25 | | - env: |
26 | | - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
27 | | - |
28 | | - - name: Wait for crates.io index |
29 | | - run: sleep 15 |
30 | | - |
31 | | - - name: Publish webshift-mcp |
32 | | - run: cargo publish -p webshift-mcp || echo "already published, skipping" |
33 | | - env: |
34 | | - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
35 | | - |
36 | | - publish-mcp: |
37 | | - name: Publish to MCP Registry |
38 | | - needs: publish-crates |
39 | | - runs-on: ubuntu-latest |
40 | | - |
41 | | - steps: |
42 | | - - name: Checkout |
43 | | - uses: actions/checkout@v4 |
44 | | - with: |
45 | | - ref: main |
46 | | - |
47 | | - - name: Install mcp-publisher |
48 | | - run: | |
49 | | - curl -fsSL https://github.com/modelcontextprotocol/registry/releases/download/v1.5.0/mcp-publisher_linux_amd64.tar.gz \ |
50 | | - | tar -xz -C /usr/local/bin mcp-publisher |
51 | | -
|
52 | | - - name: Publish to MCP Registry |
53 | | - run: | |
54 | | - mcp-publisher login github |
55 | | - mcp-publisher publish |
56 | | - env: |
57 | | - MCP_GITHUB_TOKEN: ${{ secrets.MCP_REGISTRY_TOKEN }} |
| 1 | +name: Publish |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + |
| 6 | +permissions: |
| 7 | + contents: read |
| 8 | + |
| 9 | +jobs: |
| 10 | + publish-crates: |
| 11 | + name: Publish to crates.io |
| 12 | + runs-on: ubuntu-latest |
| 13 | + |
| 14 | + steps: |
| 15 | + - name: Checkout |
| 16 | + uses: actions/checkout@v4 |
| 17 | + with: |
| 18 | + ref: main |
| 19 | + |
| 20 | + - name: Setup Rust toolchain |
| 21 | + uses: dtolnay/rust-toolchain@stable |
| 22 | + |
| 23 | + - name: Publish webshift |
| 24 | + run: cargo publish -p webshift || echo "already published, skipping" |
| 25 | + env: |
| 26 | + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
| 27 | + |
| 28 | + - name: Wait for crates.io index |
| 29 | + run: sleep 15 |
| 30 | + |
| 31 | + - name: Publish webshift-mcp |
| 32 | + run: cargo publish -p webshift-mcp || echo "already published, skipping" |
| 33 | + env: |
| 34 | + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
| 35 | + |
| 36 | + publish-mcp: |
| 37 | + name: Publish to MCP Registry |
| 38 | + needs: publish-crates |
| 39 | + runs-on: ubuntu-latest |
| 40 | + |
| 41 | + steps: |
| 42 | + - name: Checkout |
| 43 | + uses: actions/checkout@v4 |
| 44 | + with: |
| 45 | + ref: main |
| 46 | + |
| 47 | + - name: Install mcp-publisher |
| 48 | + run: | |
| 49 | + curl -fsSL https://github.com/modelcontextprotocol/registry/releases/download/v1.5.0/mcp-publisher_linux_amd64.tar.gz \ |
| 50 | + | tar -xz -C /usr/local/bin mcp-publisher |
| 51 | +
|
| 52 | + - name: Publish to MCP Registry |
| 53 | + run: | |
| 54 | + mcp-publisher login github |
| 55 | + mcp-publisher publish |
| 56 | + env: |
| 57 | + MCP_GITHUB_TOKEN: ${{ secrets.MCP_REGISTRY_TOKEN }} |
0 commit comments