forked from MayDay-wpf/snow-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (80 loc) · 2.56 KB
/
build_vsix.yml
File metadata and controls
98 lines (80 loc) · 2.56 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
96
97
98
name: Build VSIX Package
on:
push:
paths:
- '.github/workflows/build_vsix.yml'
- 'VSIX/**'
- 'VSIX/**.vsix'
- '!VSIX/**.md'
- '!VSIX/LICENSE'
- '!VSIX/.vscodeignore'
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: VSIX
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
- name: Update version (manual trigger)
if: github.event_name == 'workflow_dispatch'
run: npm version ${{ github.event.inputs.version }} --no-git-tag-version
- name: Get package version
run: |
echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
- name: Install dependencies
run: npm install
- name: Build project
run: npx -y @vscode/vsce package
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: vsix-v${{ env.PACKAGE_VERSION }}
files: VSIX/snow-cli-${{ env.PACKAGE_VERSION }}.vsix
name: VSCode Extension v${{ env.PACKAGE_VERSION }}
body: |
## 🚀 Snow CLI VSCode Extension v${{ env.PACKAGE_VERSION }}
### Installation
1. Download the `.vsix` file from this release
2. Open VSCode
3. Go to Extensions view (Ctrl+Shift+X)
4. Click the "..." menu → "Install from VSIX..."
5. Select the downloaded file
### Requirements
Install Snow CLI globally:
```bash
npm install -g snow-ai
```
### Usage
1. Open any file in VSCode
2. Click the **Snow icon** button in the editor toolbar (top right)
3. A terminal opens with Snow CLI running
4. The extension automatically connects via WebSocket
### Features
- Integrated terminal with Snow CLI
- WebSocket-based communication
- ACE Code Search integration
- Sidebar and split terminal modes
draft: false
prerelease: false
fail_on_unmatched_files: true
make_latest: true