File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build clowder website
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+
7+ workflow_dispatch :
8+
9+ jobs :
10+ build :
11+ name : Build clowder website
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ with :
16+ fetch-depth : 0
17+ - uses : actions/setup-node@v4
18+ with :
19+ node-version : 18
20+ cache : npm
21+
22+ - name : Install dependencies
23+ run : npm install
24+ - name : Build website
25+ run : npm run build
26+
27+ - name : Upload Build Artifact
28+ uses : actions/upload-pages-artifact@v3
29+ with :
30+ path : build
31+
32+ deploy :
33+ name : Deploy to GitHub Pages
34+ needs : build
35+
36+ permissions :
37+ pages : write # to deploy to Pages
38+ id-token : write # to verify the deployment originates from an appropriate source
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@v4
You can’t perform that action at this time.
0 commit comments