File tree Expand file tree Collapse file tree 1 file changed +30
-20
lines changed Expand file tree Collapse file tree 1 file changed +30
-20
lines changed Original file line number Diff line number Diff line change 1
1
name : Docs
2
+
2
3
on :
3
4
push :
4
- branches : [main]
5
+ branches : ["main"]
6
+ workflow_dispatch :
5
7
6
8
permissions :
7
- contents : write
9
+ contents : read
10
+ pages : write
11
+ id-token : write
12
+
13
+ concurrency :
14
+ group : " pages"
15
+ cancel-in-progress : true
8
16
9
17
jobs :
10
- build-docs :
11
- concurrency : ci-${{ github.ref }}
18
+ deploy :
19
+ environment :
20
+ name : github-pages
21
+ url : ${{ steps.deployment.outputs.page_url }}
12
22
runs-on : ubuntu-latest
13
23
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
18
27
uses : actions/setup-node@v4
19
28
with :
20
- node-version : " 20"
21
-
29
+ node-version : 20
22
30
- uses : pnpm/action-setup@v4
23
31
with :
24
32
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
33
+ - name : Install dependencies
34
+ run : pnpm i --frozen-lockfile
35
+ - name : Build
36
+ run : pnpm build
37
+ - name : Setup Pages
38
+ uses : actions/configure-pages@v4
39
+ - name : Upload artifact
40
+ uses : actions/upload -pages-artifact@v3
33
41
with :
34
- branch : gh-pages
35
- folder : dist
42
+ path : " ./dist"
43
+ - name : Deploy to GitHub Pages
44
+ id : deployment
45
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments