This repository was archived by the owner on Jul 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy Frontend to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch : # Allows manual trigger
8+
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : false
17+
18+ jobs :
19+ build :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+ with :
25+ submodules : false # Don't need submodules for frontend build
26+
27+ - name : Setup Node
28+ uses : actions/setup-node@v4
29+ with :
30+ node-version : ' 20'
31+ cache : ' npm'
32+ cache-dependency-path : Frontend/package-lock.json
33+
34+ - name : Install dependencies
35+ working-directory : Frontend
36+ run : npm ci
37+
38+ - name : Build
39+ working-directory : Frontend
40+ run : npm run build
41+ env :
42+ NODE_OPTIONS : --openssl-legacy-provider
43+
44+ - name : Setup Pages
45+ uses : actions/configure-pages@v4
46+
47+ - name : Upload artifact
48+ uses : actions/upload-pages-artifact@v3
49+ with :
50+ path : Frontend/build
51+
52+ deploy :
53+ environment :
54+ name : github-pages
55+ url : ${{ steps.deployment.outputs.page_url }}
56+ runs-on : ubuntu-latest
57+ needs : build
58+ steps :
59+ - name : Deploy to GitHub Pages
60+ id : deployment
61+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments