File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : ' main' # or whichever branch you want to deploy from
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v4
13+ - name : Install Node.js
14+ uses : actions/setup-node@v4
15+ with :
16+ node-version : 20
17+ cache : npm
18+
19+ - name : Install dependencies
20+ run : npm install
21+
22+ - name : build
23+ env :
24+ BASE_PATH : ' /${{ github.event.repository.name }}'
25+ # # Add and uncomment any environment variables here
26+ # # EVIDENCE_SOURCE__my_source__username: ${{ secrets.EVIDENCE_SOURCE__MY_SOURCE__USERNAME }}
27+ # # EVIDENCE_SOURCE__my_source__private_key: ${{ secrets.EVIDENCE_SOURCE__MY_SOURCE__PRIVATE_KEY }}
28+ run : |
29+ npm run sources
30+ npm run build
31+
32+ - name : Upload Artifacts
33+ uses : actions/upload-pages-artifact@v3
34+ with :
35+ path : ' build/${{ github.event.repository.name }}'
36+
37+ deploy :
38+ needs : build
39+ runs-on : ubuntu-latest
40+
41+ permissions :
42+ pages : write
43+ id-token : write
44+
45+ environment :
46+ name : github-pages
47+ url : ${{ steps.deployment.outputs.page_url }}
48+
49+ steps :
50+ - name : Deploy
51+ id : deployment
52+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments