Skip to content

Commit b7a3269

Browse files
committed
chore: build GH pages
1 parent 23bfcfe commit b7a3269

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/web-encoder.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy to GH Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Install Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: latest
21+
cache: "npm"
22+
cache-dependency-path: json-encoder-web/package-lock.json
23+
- run: npm install
24+
working-directory: json-encoder-web
25+
- run: npm run build
26+
working-directory: json-encoder-web
27+
- name: Deploy to GH Pages 🚀
28+
uses: JamesIves/github-pages-deploy-action@v4
29+
with:
30+
folder: json-encoder-web/dist

0 commit comments

Comments
 (0)