File tree 2 files changed +22
-15
lines changed
2 files changed +22
-15
lines changed Original file line number Diff line number Diff line change 80
80
81
81
- name : Test in legacy mode
82
82
run : CONCURRENT_MODE=0 yarn test:ci
83
-
84
- test-website :
85
- runs-on : ubuntu-latest
86
- name : Test Website
87
- steps :
88
- - name : Checkout
89
- uses : actions/checkout@v4
90
-
91
- - name : Setup Node.js and website deps
92
- uses : ./.github/actions/setup-website-deps
93
-
94
- - name : Build website
95
- run : yarn --cwd website build
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : [main]
6
6
paths : ['website/**']
7
+ pull_request :
8
+ branches : ['**']
9
+ paths : ['website/**']
10
+
11
+ concurrency :
12
+ group : ${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress : ${{ !contains(github.ref, 'main')}}
7
14
8
15
jobs :
16
+ test :
17
+ runs-on : ubuntu-latest
18
+ name : Test Website
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+
23
+ - name : Setup Node.js and website deps
24
+ uses : ./.github/actions/setup-website-deps
25
+
26
+ - name : Build website
27
+ run : yarn --cwd website build
28
+
9
29
deploy :
10
30
name : Deploy to GitHub Pages
31
+ if : github.ref == 'refs/heads/main'
11
32
runs-on : ubuntu-latest
12
33
steps :
13
34
- name : Checkout
@@ -25,12 +46,11 @@ jobs:
25
46
uses : peaceiris/actions-gh-pages@v3
26
47
with :
27
48
github_token : ${{ secrets.GITHUB_TOKEN }}
28
- # Build output to publish to the `gh-pages` branch:
29
49
publish_dir : ./website/build
30
50
# The following lines assign commit authorship to the official
31
51
# GH-Actions bot for deploys to `gh-pages` branch:
32
52
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
33
53
# The GH actions bot is used by default if you didn't specify the two fields.
34
54
# You can swap them out with your own user credentials.
35
55
user_name : github-actions[bot]
36
- user_email : 41898282+github-actions[bot]@users.noreply.github.com
56
+ user_email : 41898282+github-actions[bot]@users.noreply.github.com
You can’t perform that action at this time.
0 commit comments