Skip to content

Commit 50cfa21

Browse files
build(ci): 添加Gradle Wrapper与GitHub Actions自动发布流水线
- 推送 v* tag 时自动执行 buildPlugin 并创建 Release 上传插件 zip - 补建 v1.5.0-v1.6.2 缺失的 Release 条目 - CI 环境跳过 IDE 源码下载,补充 1.6.5 更新说明
1 parent 4df6a22 commit 50cfa21

8 files changed

Lines changed: 396 additions & 4 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build & Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: temurin
22+
java-version: '17'
23+
24+
- name: Set up Gradle
25+
uses: gradle/actions/setup-gradle@v4
26+
27+
- name: Build plugin
28+
run: ./gradlew buildPlugin --no-daemon --stacktrace
29+
30+
- name: Create release
31+
uses: softprops/action-gh-release@v2
32+
with:
33+
files: build/distributions/*.zip
34+
generate_release_notes: true
35+
36+
# One-time backfill: tags pushed before CI existed have no entry on the Releases page
37+
backfill-legacy-releases:
38+
if: github.ref == 'refs/tags/v1.6.5'
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v4
43+
44+
- name: Create missing releases for legacy tags
45+
env:
46+
GH_TOKEN: ${{ github.token }}
47+
run: |
48+
for tag in v1.5.0 v1.5.1 v1.5.2 v1.5.3 v1.5.4 v1.6.0 v1.6.1 v1.6.2; do
49+
if gh release view "$tag" --repo "$GITHUB_REPOSITORY" > /dev/null 2>&1; then
50+
echo "Release for $tag already exists, skipping"
51+
continue
52+
fi
53+
gh release create "$tag" --repo "$GITHUB_REPOSITORY" --verify-tag --title "$tag" --generate-notes
54+
echo "Created release for $tag"
55+
done

‎.gitignore‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ out
55
.DS_Store
66
.gradle/
77
build/
8-
gradlew
9-
gradlew.bat
108
.kotlintest
119
.claude/settings.local.json

‎build.gradle‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ intellij {
3232
pluginName = project.pluginName
3333
version = project.platformVersion
3434
type = project.platformType
35-
downloadSources = true
35+
// IDE sources are only useful for local development in IDEA; CI only needs the binaries
36+
downloadSources = !System.getenv('CI')
3637
updateSinceUntilBuild = false
3738
buildSearchableOptions.enabled = false
3839
plugins = project.platformPlugins.split(',').collect { it.trim() }.findAll { !it.isEmpty() }

‎doc/change-notes.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<li>Map thinking levels to the parameter each API format supports, covering OpenAI reasoning models, Anthropic thinking budgets, Responses reasoning effort, and vendor switches for Qwen, Zhipu, Moonshot, Doubao, MiMo, DeepSeek, OpenRouter, and MiniMax.</li>
77
<li>Show the resolved request path next to the API format selector and add a thinking column to the model list.</li>
88
<li>Migrate existing reasoning compatibility settings to the disabled thinking level and remember when a provider rejects thinking parameters.</li>
9+
<li>Fix an EDT access violation when LLM actions read the commit panel selection from a background thread.</li>
910
</ul>
1011
<br/>
1112
<strong>version 1.6.4</strong>

‎gradle/wrapper/gradle-wrapper.jar‎

2.04 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

‎gradlew‎

Lines changed: 244 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)