Skip to content

Commit dfdd0a4

Browse files
committed
icons release script
1 parent f26db8d commit dfdd0a4

File tree

4 files changed

+64
-4
lines changed

4 files changed

+64
-4
lines changed

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Package and Release VS Code Extension
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Trigger on version tags like v1.0.0
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write # Required to upload to release
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
24+
- name: Install Java
25+
uses: actions/setup-java@v4
26+
with:
27+
java-version: '17'
28+
distribution: 'temurin'
29+
30+
- name: Setup Gradle
31+
uses: gradle/actions/setup-gradle@v4
32+
33+
- name: Build with Gradle
34+
run: ./install-locator/gradlew runtime
35+
36+
- name: Install dependencies
37+
run: npm ci
38+
39+
- name: Install vsce
40+
run: npm install -g @vscode/vsce
41+
42+
- name: Package extension
43+
run: vsce package
44+
45+
- name: Upload VSIX to GitHub Release
46+
uses: svenstaro/upload-release-action@v2
47+
with:
48+
repo_token: ${{ secrets.GITHUB_TOKEN }}
49+
file: '*.vsix'
50+
tag: ${{ github.ref_name }}
51+
overwrite: true
52+
file_glob: true

media/start.svg

Lines changed: 5 additions & 0 deletions
Loading

media/stop.svg

Lines changed: 4 additions & 0 deletions
Loading

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
{
2626
"command": "processing.sketch.run",
2727
"title": "Run the Processing Sketch",
28-
"icon": "$(play)"
28+
"icon": "media/start.svg"
2929
},
3030
{
3131
"command": "processing.sketch.stop",
3232
"title": "Stop the Processing Sketch",
33-
"icon": "$(stop)"
33+
"icon": "media/stop.svg"
3434
}
3535
],
3636
"menus": {
@@ -90,8 +90,7 @@
9090
"compile": "tsc -b",
9191
"watch": "tsc -b -w",
9292
"lint": "eslint",
93-
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
94-
"test": "sh ./scripts/e2e.sh"
93+
"postinstall": "cd client && npm install && cd ../server && npm install && cd .."
9594
},
9695
"devDependencies": {
9796
"@eslint/js": "^9.13.0",

0 commit comments

Comments
 (0)