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