File tree Expand file tree Collapse file tree 1 file changed +31
-20
lines changed Expand file tree Collapse file tree 1 file changed +31
-20
lines changed Original file line number Diff line number Diff line change 11name : Docs
2+
23on :
34 push :
4- branches : [main]
5+ branches : ["main"]
6+ workflow_dispatch :
57
68permissions :
7- contents : write
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : " pages"
15+ cancel-in-progress : true
816
917jobs :
10- build-docs :
11- concurrency : ci-${{ github.ref }}
18+ deploy :
19+ environment :
20+ name : github-pages
21+ url : ${{ steps.deployment.outputs.page_url }}
1222 runs-on : ubuntu-latest
1323 steps :
14- - name : Checkout 🛎️
15- uses : actions/checkout@v3
16-
17- - name : Node
24+ - name : Checkout
25+ uses : actions/checkout@v4
26+ - name : Set up Node
1827 uses : actions/setup-node@v4
1928 with :
20- node-version : " 20 "
21-
29+ node-version : 20
30+ cache : " pnpm "
2231 - uses : pnpm/action-setup@v4
2332 with :
2433 version : 9.9.0
25-
26- - name : Install and Build
27- run : |
28- pnpm i --frozen-lockfile
29- BASE_URL='https://preachjs.github.io/' pnpm build
30-
31- - name : Deploy 🚀
32- uses : JamesIves/github -pages-deploy-action@v4
34+ - name : Install dependencies
35+ run : pnpm --frozen-lockfile
36+ - name : Build
37+ run : pnpm build
38+ - name : Setup Pages
39+ uses : actions/configure-pages@v4
40+ - name : Upload artifact
41+ uses : actions/upload -pages-artifact@v3
3342 with :
34- branch : gh-pages
35- folder : dist
43+ path : " ./dist"
44+ - name : Deploy to GitHub Pages
45+ id : deployment
46+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments