File tree Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Explorer
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : true
17+
18+ jobs :
19+ build :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+
25+ - name : Set up Python
26+ uses : actions/setup-python@v5
27+ with :
28+ python-version : " 3.11"
29+
30+ - name : Generate dataset
31+ run : python scripts/generate_data_bundle.py --out build/data.json --public web/public/data.json
32+
33+ - name : Set up Node.js
34+ uses : actions/setup-node@v4
35+ with :
36+ node-version : " 20"
37+ cache : " npm"
38+ cache-dependency-path : web/package-lock.json
39+
40+ - name : Install dependencies
41+ working-directory : web
42+ run : npm install
43+
44+ - name : Build site
45+ working-directory : web
46+ run : npm run build
47+
48+ - name : Upload artifact
49+ uses : actions/upload-pages-artifact@v3
50+ with :
51+ path : web/dist
52+
53+ deploy :
54+ needs : build
55+ runs-on : ubuntu-latest
56+ environment :
57+ name : github-pages
58+ url : ${{ steps.deployment.outputs.page_url }}
59+ steps :
60+ - name : Configure Pages
61+ id : config
62+ uses : actions/configure-pages@v5
63+ - name : Deploy to GitHub Pages
64+ id : deployment
65+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments