-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.17 KB
/
publish-mcpb.yml
File metadata and controls
46 lines (36 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Publish MCPB Bundle
on:
push:
branches:
- main
workflow_dispatch:
jobs:
publish-mcpb:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- id: version
run: echo "version=$(jq -r .version package.json)" >> "$GITHUB_OUTPUT"
- run: npm ci
- run: npm run mcpb:build
- uses: actions/upload-artifact@v4
with:
name: codeant-mcpb-v${{ steps.version.outputs.version }}
path: dist/codeant.mcpb
if-no-files-found: error
- uses: softprops/action-gh-release@v2
with:
tag_name: mcpb-v${{ steps.version.outputs.version }}
name: CodeAnt MCPB v${{ steps.version.outputs.version }}
files: dist/codeant.mcpb
fail_on_unmatched_files: true
body: |
CodeAnt MCPB bundle v${{ steps.version.outputs.version }}
Commit: ${{ github.sha }}
Message: ${{ github.event.head_commit.message }}
Install instructions: https://github.com/CodeAnt-AI/codeant-cli/blob/main/mcp.md