File tree Expand file tree Collapse file tree 8 files changed +569
-877
lines changed
Expand file tree Collapse file tree 8 files changed +569
-877
lines changed Original file line number Diff line number Diff line change 1+ name : Build & Lint Extension
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Use Node.js 20
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : 20
20+ cache : ' npm'
21+
22+ - name : Install dependencies
23+ run : npm ci
24+
25+ - name : Type Check
26+ run : npm run type-check
27+
28+ - name : Build Extension
29+ run : npm run build
30+
31+ - name : Upload Build Artifact
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : testpilot-extension
35+ path : dist/
36+ retention-days : 5
Original file line number Diff line number Diff line change 1+ name : Deploy Build to Branch
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+
7+ permissions :
8+ contents : write
9+
10+ jobs :
11+ deploy-build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Use Node.js 20
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : 20
20+ cache : ' npm'
21+
22+ - name : Install dependencies
23+ run : npm ci
24+
25+ - name : Build Extension
26+ run : npm run build
27+
28+ - name : Deploy to 'build' branch
29+ uses : peaceiris/actions-gh-pages@v3
30+ with :
31+ github_token : ${{ secrets.GITHUB_TOKEN }}
32+ publish_dir : ./dist
33+ publish_branch : build
34+ commit_message : " Deploy build: ${{ github.sha }}"
You can’t perform that action at this time.
0 commit comments