File tree 1 file changed +23
-29
lines changed 1 file changed +23
-29
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : [main]
6
6
7
+ permissions :
8
+ contents : read
9
+ pages : write
10
+ id-token : write
11
+
12
+ concurrency :
13
+ group : ' pages'
14
+ cancel-in-progress : false
15
+
7
16
jobs :
8
- update-docs :
17
+ build :
18
+ name : Build Docs
9
19
runs-on : ubuntu-latest
10
20
11
21
steps :
12
- - name : Checkout
13
- uses : actions/checkout@v3
22
+ - name : Checkout repository
23
+ uses : actions/checkout@v4
14
24
15
- - name : Install Node.js
16
- uses : actions/setup-node@v3
25
+ - name : Setup Node.js
26
+ uses : actions/setup-node@v4
17
27
with :
18
28
node-version : 20
29
+ cache : ' pnpm'
19
30
20
- - uses : pnpm/action-setup@v2
21
- name : Install pnpm
31
+ - name : Install pnpm
32
+ uses : pnpm/action-setup@v3
22
33
with :
23
34
version : 9
24
35
run_install : false
25
36
26
- - name : Get pnpm store directory
27
- shell : bash
28
- run : |
29
- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
30
-
31
- - uses : actions/cache@v3
32
- name : Setup pnpm cache
33
- with :
34
- path : ${{ env.STORE_PATH }}
35
- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36
- restore-keys : |
37
- ${{ runner.os }}-pnpm-store-
38
-
39
37
- name : Install dependencies
40
38
run : pnpm install
41
39
@@ -49,23 +47,19 @@ jobs:
49
47
done
50
48
51
49
- name : Upload Pages artifact
52
- uses : actions/upload-pages-artifact@v2
50
+ uses : actions/upload-pages-artifact@v3
53
51
with :
54
52
path : docs/
55
53
56
54
deploy :
57
- needs : update-docs
58
-
59
- permissions :
60
- pages : write
61
- id-token : write
62
-
55
+ name : Deploy to GitHub Pages
56
+ needs : build
57
+ runs-on : ubuntu-latest
63
58
environment :
64
59
name : github-pages
65
60
url : ${{ steps.deployment.outputs.page_url }}
66
61
67
- runs-on : ubuntu-latest
68
62
steps :
69
63
- name : Deploy to GitHub Pages
70
64
id : deployment
71
- uses : actions/deploy-pages@v2
65
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments