Skip to content

Commit f2bfba6

Browse files
author
Sam Wu
committed
feat: try github actions
1 parent 6521173 commit f2bfba6

4 files changed

Lines changed: 48 additions & 17754 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches: [page-test]
6+
7+
permissions: read-all
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
15+
16+
- name: Setup node
17+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # tag=v4.4.0
18+
with:
19+
node-version: 22
20+
21+
- name: Build UI
22+
run: |
23+
npm i
24+
npm run build
25+
mv dist docs
26+
27+
- name: Upload artifact
28+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # tag=v3.0.1
29+
with:
30+
path: docs
31+
retention-days: 1
32+
33+
deploy:
34+
needs: build
35+
36+
permissions:
37+
pages: write
38+
id-token: write
39+
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # tag=v4.0.5

docs/index.html

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)