File tree Expand file tree Collapse file tree 2 files changed +22
-12
lines changed Expand file tree Collapse file tree 2 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 1
- # This is a basic workflow to help you get started with Actions
2
1
name : Deploy
3
2
on :
4
3
push :
5
4
branches : [master]
6
5
schedule :
7
6
- cron : ' 0 0 * * *'
8
7
9
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
10
8
jobs :
11
- # This workflow contains a single job called "build"
12
9
build :
13
10
# The type of runner that the job will run on
14
11
runs-on : ubuntu-latest
15
12
16
- # Steps represent a sequence of tasks that will be executed as part of the job
17
13
steps :
18
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19
- - uses : actions/checkout@v2
20
- - uses : actions/setup-node@v2
14
+ - name : Checkout
15
+ uses : actions/checkout@v4
16
+ with :
17
+ fetch-depth : 0
18
+
19
+ - name : Setup Node.js
20
+ uses : actions/setup-node@v4
21
21
with :
22
22
node-version : ' 18'
23
- - uses : nanasess/setup-php@master
23
+
24
+ - name : Setup PHP
25
+ uses : nanasess/setup-php@master
24
26
with :
25
27
php-version : ' 8.1'
26
28
27
29
- name : Get Composer
28
30
run : bash get_composer.bash
29
31
30
- # Runs a single command using the runners shell
31
32
- name : Build Pattern Library
32
33
run : bash build_pattern_lib.bash
33
34
34
35
- name : Deploy 🚀
35
- uses : JamesIves/github-pages-deploy-action@4.1.3
36
+ uses : JamesIves/github-pages-deploy-action@v4
36
37
with :
37
38
branch : gh-pages
38
39
folder : storybook-static
Original file line number Diff line number Diff line change @@ -20,8 +20,17 @@ composer config allow-plugins.phpstan/extension-installer true
20
20
../composer.phar require silverstripe/linkfield:4.x-dev --prefer-source --no-install
21
21
../composer.phar require dnadesign/silverstripe-elemental:5.x-dev --prefer-source
22
22
yarn cache clean
23
- yarn install
24
- yarn static-pattern-lib
23
+
24
+ # Retry Yarn install up to 3 times
25
+ for i in {1..3}; do
26
+ yarn install && break || sleep 10
27
+ done
28
+
29
+ # Retry Yarn static-pattern-lib up to 3 times
30
+ for i in {1..3}; do
31
+ yarn static-pattern-lib && break || sleep 10
32
+ done
33
+
25
34
mv storybook-static ../
26
35
cd ..
27
36
rm -rf silverstripe-admin
You can’t perform that action at this time.
0 commit comments