Skip to content

Commit 57681e7

Browse files
committed
Enhance UI to modern glass/white theme and Add CI workflows for build and deploy
1 parent 3b4d5c6 commit 57681e7

File tree

8 files changed

+569
-877
lines changed

8 files changed

+569
-877
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

.github/workflows/deploy-build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 }}"

0 commit comments

Comments
 (0)