Skip to content

Commit 89afe58

Browse files
committed
Build and deploy compat to gh pages action
1 parent 92d0a13 commit 89afe58

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build and Deploy Compat to GitHub Pages
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
7+
pages: write
8+
id-token: write
9+
10+
jobs:
11+
build-and-deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 23
18+
cache: npm
19+
- run: npm ci
20+
- run: npm run build-compat
21+
- name: Prepare GitHub Pages content
22+
run: cp tests/compat/index.html tests/compat/compat-data.js tests/compat/tests.js tests/compat/browsers-runner.js gh-pages/
23+
- name: Upload GitHub Pages artifact
24+
uses: actions/upload-pages-artifact@v2
25+
with:
26+
path: gh-pages
27+
- name: Deploy to GitHub Pages
28+
uses: actions/deploy-pages@v2

pages/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)