File tree Expand file tree Collapse file tree 2 files changed +50
-22
lines changed Expand file tree Collapse file tree 2 files changed +50
-22
lines changed Original file line number Diff line number Diff line change 1+ name : Generate and Upload DXT File
2+
3+ on :
4+ push :
5+ tags :
6+ - mcp-neo4j-cypher-v*
7+ workflow_dispatch : # Allows manual triggering of the workflow
8+ inputs :
9+ release_tag :
10+ description : ' Release tag to add .dxt file to (e.g., mcp-neo4j-cypher-v1.0.0)'
11+ required : true
12+ type : string
13+
14+ permissions :
15+ contents : write
16+
17+ jobs :
18+ generate-dxt :
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Checkout code
23+ uses : actions/checkout@v4
24+ with :
25+ # For manual runs, checkout the specific tag
26+ ref : ${{ github.event.inputs.release_tag || github.event.release.tag_name }}
27+
28+ - name : Setup Node.js for dxt
29+ uses : actions/setup-node@v4
30+ with :
31+ node-version : ' 18'
32+
33+ - name : Install dxt
34+ run : npm install -g dxt
35+
36+ - name : Generate .dxt file
37+ run : |
38+ cd servers/mcp-neo4j-cypher/
39+ dxt pack
40+
41+ - name : Upload .dxt file to release
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+ run : |
45+ # Use the input tag for manual runs, or the event tag for automatic runs
46+ TAG_NAME="${{ github.event.inputs.release_tag || github.event.release.tag_name }}"
47+ gh release upload "$TAG_NAME" \
48+ servers/mcp-neo4j-cypher/*.dxt \
49+ --clobber
Original file line number Diff line number Diff line change 1515 workflow_dispatch : # Allows manual triggering of the workflow
1616
1717permissions :
18- contents : write
18+ contents : read
1919
2020jobs :
2121 release-build :
3333 cd servers/mcp-neo4j-cypher/
3434 python -m pip install build
3535 python -m build
36-
37- - name : Setup Node.js for dxt
38- uses : actions/setup-node@v4
39- with :
40- node-version : ' 18'
41-
42- - name : Install dxt
43- run : npm install -g dxt
44-
45- - name : Generate .dxt file
46- run : |
47- cd servers/mcp-neo4j-cypher/
48- dxt pack
49-
50- - name : Upload .dxt file to release
51- env :
52- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53- run : |
54- gh release upload ${{ github.event.release.tag_name }} \
55- servers/mcp-neo4j-cypher/*.dxt \
56- --clobber
5736
5837 - name : Upload distributions
5938 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments