File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,16 @@ name: Build and Deploy Jekyll site
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - gh-pages
5
+ pull_request :
7
6
8
- permissions :
9
- contents : read
10
- pages : write
11
- id-token : write
12
7
13
8
jobs :
14
9
build :
15
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ actions : write
13
+ contents : write
14
+ pages : write
16
15
steps :
17
16
- name : Checkout
18
17
uses : actions/checkout@v4
@@ -22,14 +21,20 @@ jobs:
22
21
23
22
# pnpm
24
23
- uses : pnpm/action-setup@v4
24
+ with :
25
+ run_install : false
26
+ version : 10.2.0
25
27
- name : build 2025
26
28
working-directory : ./2025
27
29
run : |
28
30
pnpm install --frozen-lockfile
29
31
pnpm build
30
32
- name : copy 2025 to _site
31
33
shell : bash
32
- run : cp -r 2025/dist/ _site/2025/
34
+ run : |
35
+ sudo chown -R $(whoami) _site
36
+ mkdir -p _site/2025
37
+ cp -r ./2025/dist/* ./_site/2025/
33
38
34
39
- name : Upload artifact
35
40
uses : actions/upload-pages-artifact@v3
43
48
name : github-pages
44
49
url : ${{ steps.deployment.outputs.page_url }}
45
50
runs-on : ubuntu-latest
51
+ permissions :
52
+ contents : read
53
+ pages : write
54
+ id-token : write
55
+ if : github.ref == 'refs/heads/gh-pages'
46
56
steps :
47
57
- name : Deploy to GitHub Pages
48
58
id : deployment
You can’t perform that action at this time.
0 commit comments