File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 6
6
# tags:
7
7
# - '*'
8
8
9
-
10
9
jobs :
11
10
build-vsix :
12
11
runs-on : ubuntu-20.04
13
12
steps :
13
+
14
14
- uses : actions/checkout@v4
15
15
with :
16
16
submodules : true
17
+
17
18
- uses : actions/setup-node@v4
18
19
with :
19
20
node-version : 20
20
21
cache : ' npm'
21
22
cache-dependency-path : ./package-lock.json
22
- - name : Install code
23
+
24
+ - name : Install NPM dependencies
23
25
run : |
24
- sudo snap install --classic code
26
+ npm install -g @vscode/vsce
27
+ npm install
28
+
25
29
- name : Build VSIX
26
30
run : |
27
- rm -f *.vsix
28
- vsce package
31
+ rm -f *.vsix
32
+ vsce package
29
33
30
34
- name : Upload VSIX
31
35
uses : actions/upload-artifact@v4
@@ -38,20 +42,27 @@ jobs:
38
42
runs-on : ubuntu-latest
39
43
permissions :
40
44
contents : write
45
+
41
46
steps :
47
+
42
48
- uses : actions/checkout@v4
43
49
with :
44
50
submodules : true
51
+
45
52
- name : Download all artifacts
46
53
uses : actions/download-artifact@v4
47
54
with :
48
55
path : .
56
+
49
57
- name : Renaming artifacts
50
58
run : |
51
59
rev=$(git rev-parse --short HEAD)
60
+ #ls -altR
52
61
mkdir release
53
- mkdir tmp && cd tmp && unzip ../arduino-littlefs-upload.vsix.zip/*zip && mv */*vsix ../release/. && cd .. && rm -rf tmp
62
+ cp ./arduino-littlefs-upload.vsix/arduino-littlefs-upload-*.vsix ./release/.
63
+ #mkdir tmp && cd tmp && unzip ../arduino-littlefs-upload.vsix.zip/*zip && mv */*vsix ../release/. && cd .. && rm -rf tmp
54
64
ls -l release
65
+
55
66
- name : Drafting release
56
67
uses : ncipollo/release-action@v1
57
68
with :
You can’t perform that action at this time.
0 commit comments