File tree Expand file tree Collapse file tree 5 files changed +54
-5
lines changed Expand file tree Collapse file tree 5 files changed +54
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : VS Code Arduino Language Server
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ workflow_dispatch :
8
+ pull_request :
9
+ branches :
10
+ - master
11
+ schedule :
12
+ - cron : ' 0 2 * * *' # run every day at 2AM
13
+
14
+ jobs :
15
+
16
+ build :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v2
21
+
22
+ - name : Install Node.js 12.x
23
+ uses : actions/setup-node@v1
24
+ with :
25
+ node-version : ' 12.x'
26
+ registry-url : ' https://registry.npmjs.org'
27
+
28
+ - name : Build VS Code Extension
29
+ run : |
30
+ yarn
31
+
32
+ - name : Upload VS Code Extension [GitHub Actions]
33
+ uses : actions/upload-artifact@v2
34
+ with :
35
+ name : build-artifacts
36
+ path : electron/build/dist/build-artifacts/
37
+
38
+ - name : Upload VS Code Extension [S3]
39
+ if : github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master')
40
+ uses : docker://plugins/s3
41
+ env :
42
+ PLUGIN_SOURCE : " build-artifacts/*"
43
+ PLUGIN_STRIP_PREFIX : " build-artifacts/"
44
+ PLUGIN_TARGET : " /vscode-arduino-language-server/nightly"
45
+ PLUGIN_BUCKET : ${{ secrets.DOWNLOADS_BUCKET }}
46
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
47
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Original file line number Diff line number Diff line change @@ -2,5 +2,4 @@ node_modules/
2
2
lib /
3
3
bin /
4
4
dist /
5
- * .zip
6
- * .vsix
5
+ build-artifacts /
Original file line number Diff line number Diff line change @@ -5,4 +5,6 @@ dist/**/*.map
5
5
node_modules /
6
6
** /tsconfig.json
7
7
yarn.lock
8
- * .zip
8
+ .github /
9
+ .vscode /
10
+ yarn.lock
Original file line number Diff line number Diff line change 16
16
"compile" : " tsc -p ./" ,
17
17
"watch" : " tsc -w -p ./" ,
18
18
"webpack" : " webpack --config ./configs/webpack.config.js" ,
19
- "package" : " vsce package"
19
+ "package" : " vsce package --out ./build-artifacts "
20
20
},
21
21
"repository" : {
22
22
"type" : " git" ,
Original file line number Diff line number Diff line change 20
20
"skipLibCheck" : true
21
21
},
22
22
"exclude" : [
23
- " node_modules"
23
+ " ./node_modules" ,
24
+ " ./lib/**/*"
24
25
]
25
26
}
You can’t perform that action at this time.
0 commit comments