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 : Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main # default branch
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v3
13+ with :
14+ token : ${{ secrets.GITHUB_TOKEN }}
15+ # If your repository depends on submodule, please see: https://github.com/actions/checkout
16+ submodules : recursive
17+ - name : Use Node.js 18.14.2
18+ uses : actions/setup-node@v2
19+ with :
20+ node-version : ' 18'
21+ - name : Cache NPM dependencies
22+ uses : actions/cache@v2
23+ with :
24+ path : node_modules
25+ key : ${{ runner.OS }}-npm-cache
26+ restore-keys : |
27+ ${{ runner.OS }}-npm-cache
28+ - name : Install Dependencies
29+ run : npm install
30+ - name : Build
31+ run : npm run build
32+ - name : Upload Pages artifact
33+ uses : actions/upload-pages-artifact@v2
34+ with :
35+ path : ./public
36+ deploy :
37+ needs : build
38+ permissions :
39+ pages : write
40+ id-token : write
41+ environment :
42+ name : github-pages
43+ url : ${{ steps.deployment.outputs.page_url }}
44+ runs-on : ubuntu-latest
45+ steps :
46+ - name : Deploy to GitHub Pages
47+ id : deployment
48+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments