File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+ on :
3+ push :
4+ branches : [ main ]
5+ workflow_dispatch :
6+
7+ jobs :
8+ build-and-deploy :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ contents : write
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v3
15+
16+ - name : Set up Node.js
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : ' 18'
20+ cache : ' npm'
21+
22+ - name : Install dependencies
23+ run : npm ci
24+
25+ - name : Fetch GitHub data
26+ run : npm run fetch-data
27+ env :
28+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
29+ continue-on-error : true
30+
31+ - name : Build
32+ run : npm run build
33+
34+ - name : Deploy to GitHub Pages
35+ uses : JamesIves/github-pages-deploy-action@v4
36+ with :
37+ folder : dist
38+ branch : gh-pages
39+ clean : true
You can’t perform that action at this time.
0 commit comments