File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : NodeJS with Webpack
2+
3+ on :
4+ push :
5+ workflow_dispatch :
6+
7+ permissions :
8+ contents : write
9+ pages : write
10+ id-token : write
11+
12+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
13+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : false
17+
18+ jobs :
19+ deploy :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v4
24+
25+ - name : Setup Node.js
26+ uses : actions/setup-node@v4
27+ with :
28+ node-version : ' 20.x'
29+
30+ - name : Install dependencies
31+ run : |
32+ yarn install
33+
34+ - name : Build project
35+ env :
36+ ZEROCAT_BACKEND : ${{ vars.ZEROCAT_BACKEND }}
37+ ZEROCAT_ASSETS : ${{ vars.ZEROCAT_ASSETS }}
38+ run : |
39+ export NODE_OPTIONS=--openssl-legacy-provider
40+ npm run build
41+
42+ - name : Setup Pages
43+ uses : actions/configure-pages@v5
44+
45+ - name : Upload artifact
46+ uses : actions/upload-pages-artifact@v3
47+ with :
48+ path : ' ./build'
49+
50+ - name : Deploy
51+ uses : peaceiris/actions-gh-pages@v4
52+ with :
53+ github_token : ${{ secrets.GITHUB_TOKEN }}
54+ publish_dir : ./build
55+ publish_branch : build
56+
57+ - name : Deploy to GitHub Pages
58+ id : deployment
59+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments