File tree 1 file changed +14
-16
lines changed
1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -2,35 +2,33 @@ name: Deploy to GitHub Pages
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
5
+ branches : [main]
7
6
8
7
jobs :
9
8
deploy :
10
- name : Deploy to GitHub Pages
11
9
runs-on : ubuntu-latest
12
10
steps :
13
- - uses : actions/checkout@v2
11
+ - uses : actions/checkout@v3
14
12
15
- - uses : pnpm/action-setup@v2
13
+ - name : Setup pnpm
14
+ uses : pnpm/action-setup@v2
16
15
with :
17
- version : 9
16
+ version : 8 # Use your preferred pnpm version
18
17
19
- - uses : actions/setup-node@v2
18
+ - name : Setup Node.js
19
+ uses : actions/setup-node@v3
20
20
with :
21
- node-version : 18.x
22
- cache : pnpm
21
+ node-version : 18
22
+ cache : ' pnpm'
23
23
24
24
- name : Install dependencies
25
- run : pnpm install --frozen-lockfile
26
- - name : Build website
25
+ run : pnpm install
26
+
27
+ - name : Build
27
28
run : pnpm build
28
29
29
- - name : Deploy to GitHub Pages
30
+ - name : Deploy
30
31
uses : peaceiris/actions-gh-pages@v3
31
32
with :
32
33
github_token : ${{ secrets.GITHUB_TOKEN }}
33
- publish_dir : ./out
34
- cname : docs.it-scripts.com
35
- user_name : github-actions[bot]
36
- user_email : 41898282+github-actions[bot]@users.noreply.github.com
34
+ publish_dir : ./out
You can’t perform that action at this time.
0 commit comments