-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (78 loc) · 2.44 KB
/
Copy pathrelease.yml
File metadata and controls
93 lines (78 loc) · 2.44 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
tag:
description: "Release tag, for example v1.2.2"
required: true
release_name:
description: "Release title"
required: false
make_latest:
description: "Mark as latest release"
required: false
default: "true"
permissions:
contents: write
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.tag || github.ref }}
- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "21"
- name: Make Gradle wrapper executable
run: chmod +x ./gradlew
- name: Prepare release metadata
id: meta
shell: bash
run: |
if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
TAG="${{ github.event.inputs.tag }}"
RELEASE_NAME="${{ github.event.inputs.release_name }}"
MAKE_LATEST="${{ github.event.inputs.make_latest }}"
else
TAG="${GITHUB_REF_NAME}"
RELEASE_NAME=""
MAKE_LATEST="true"
fi
if [[ -z "$RELEASE_NAME" ]]; then
RELEASE_NAME="$TAG"
fi
if [[ "$MAKE_LATEST" == "true" ]]; then
LATEST_FLAG="true"
else
LATEST_FLAG="false"
fi
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
echo "release_name=$RELEASE_NAME" >> "$GITHUB_OUTPUT"
echo "make_latest=$LATEST_FLAG" >> "$GITHUB_OUTPUT"
- name: Run tests
run: ./gradlew test
- name: Build distributable JAR
run: ./gradlew embedProxyJar
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.meta.outputs.tag }}
name: ${{ steps.meta.outputs.release_name }}
files: build/libs/burp-mcp-all.jar
generate_release_notes: true
append_body: true
body: |
## 使用方式
1. 在 Burp Suite -> Extensions 中加载 `burp-mcp-all.jar`
2. 在 Burp 的 MCP 面板启用服务
3. 在 MCP 客户端中连接 `http://127.0.0.1:9876/mcp`
推荐使用 Streamable HTTP。
make_latest: ${{ steps.meta.outputs.make_latest }}