Skip to content

Commit b5baf3d

Browse files
committed
ci: prepare for uploading language server to VSCode marketplace automatically.
1 parent 1002d34 commit b5baf3d

5 files changed

Lines changed: 2502 additions & 48 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish VSCode Extension
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: '20'
14+
- name: Install dependencies
15+
working-directory: ./ls/editors/code
16+
run: npm install
17+
- name: Package extension
18+
working-directory: ./ls/editors/code
19+
run: npx @vscode/vsce package
20+
- name: Upload artifact
21+
uses: actions/upload-artifact@v4
22+
with:
23+
name: extension
24+
path: ./ls/editors/code/*.vsix
25+
26+
publish:
27+
needs: build
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Download artifact
31+
uses: actions/download-artifact@v4
32+
with:
33+
name: extension
34+
- name: Publish to Visual Studio Marketplace
35+
run: npx @vscode/vsce publish --packagePath *.vsix
36+
env:
37+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

ls/editors/code/LICENSE

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Copyright (c) 2024. The YARA-X Authors. All Rights Reserved.
2+
3+
Redistribution and use in source and binary forms, with or without modification,
4+
are permitted provided that the following conditions are met:
5+
6+
1. Redistributions of source code must retain the above copyright notice, this
7+
list of conditions and the following disclaimer.
8+
9+
2. Redistributions in binary form must reproduce the above copyright notice,
10+
this list of conditions and the following disclaimer in the documentation
11+
and/or other materials provided with the distribution.
12+
13+
3. Neither the name of the copyright holder nor the names of its contributors
14+
may be used to endorse or promote products derived from this software without
15+
specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
18+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
21+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (
22+
INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
23+
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

ls/editors/code/images/icon.png

1.52 KB
Loading

0 commit comments

Comments
 (0)