File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-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 ]
6+
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+
19+ - name : Setup Node
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : 20
23+
24+ - name : Install Dependencies
25+ run : npm install
26+
27+ - name : Build
28+ run : npm run build
29+
30+ - name : Upload Artifact
31+ uses : actions/upload-pages-artifact@v3
32+ with :
33+ path : ./dist
34+
35+ deploy :
36+ environment :
37+ name : github-pages
38+ url : ${{ steps.deployment.outputs.page_url }}
39+ runs-on : ubuntu-latest
40+ needs : build
41+ steps :
42+ - name : Deploy to GitHub Pages
43+ id : deployment
44+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments