forked from MayDay-wpf/snow-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (82 loc) · 3.18 KB
/
build_jetbrains.yml
File metadata and controls
95 lines (82 loc) · 3.18 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
94
95
name: Build JetBrains Plugin
on:
push:
paths:
- '.github/workflows/build_jetbrains.yml'
- 'JetBrains/**'
- '!JetBrains/**.md'
- '!JetBrains/.gitignore'
branches:
- '*'
tags:
- 'v*'
workflow_dispatch:
inputs:
version:
description: 'Version to publish (e.g., 1.0.0)'
required: true
type: string
permissions:
contents: write
packages: write
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: JetBrains
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: zulu
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
with:
cache-read-only: false
gradle-version: wrapper
- name: Update version (manual trigger)
if: github.event_name == 'workflow_dispatch'
run: |
VERSION="${{ github.event.inputs.version }}"
echo "Updating version to ${VERSION}"
sed -i "s/^version = .*/version = \"${VERSION}\"/" build.gradle.kts
sed -i "s/^pluginVersion = .*/pluginVersion = ${VERSION}/" gradle.properties
- name: Get version
run: |
echo "PLUGIN_VERSION=$(grep '^version =' build.gradle.kts | cut -d'"' -f2)" >> $GITHUB_ENV
- name: Build and Publish Plugin
# env:
# PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
# CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }}
# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
# PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
run: |
./gradlew buildPlugin
./gradlew verifyPlugin
# ./gradlew publishPlugin
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: jetbrains
files: JetBrains/build/distributions/snow-cli-jetbrains-${{ env.PLUGIN_VERSION }}.zip
name: Release JetBrains plugin
body: |
## 🚀 Snow CLI JetBrains plugin
Latest release version: `v${{ env.PLUGIN_VERSION }}`
### Usage
JetBrains IDE plugin for integrating with Snow AI CLI. Provides intelligent code navigation and search powered by AI, with support for IntelliJ IDEA, PyCharm, WebStorm, and other JetBrains IDEs.
### Features
- **WebSocket Integration**: Real-time bi-directional communication with Snow CLI
- **Editor Context Tracking**: Automatically sends active file, cursor position, and selected text to Snow CLI
- **Code Diagnostics**: Retrieves and shares code diagnostics with the AI
- **Go to Definition**: Navigate to symbol definitions via Snow CLI
- **Find References**: Find all references to symbols across the project
- **Document Symbols**: Extract and share document structure with the AI
- **Auto-Reconnection**: Robust reconnection with exponential backoff strategy
- **Terminal Integration**: Quick access to Snow CLI from the toolbar
draft: false
prerelease: false