File tree Expand file tree Collapse file tree 10 files changed +40
-676
lines changed
Expand file tree Collapse file tree 10 files changed +40
-676
lines changed Original file line number Diff line number Diff line change 2929 with :
3030 ruby-version : ' 2.6.x'
3131
32- - name : Install tools (for Ubuntu)
33- if : matrix.os == 'ubuntu-latest'
34- run : |
35- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
36- sudo add-apt-repository ppa:rmescandon/yq
37- sudo apt update
38- sudo apt install yq -y
39-
40- - name : Install tools (for macOS)
41- if : matrix.os == 'macos-latest'
42- run : |
43- brew install coreutils
44- brew install yq
45-
4632 - name : Checkout
4733 uses : actions/checkout@v2
4834 with :
7359
7460 - name : Build Site
7561 run : |
76- bash tools/build.sh
62+ JEKYLL_ENV=production bundle exec jekyll b
7763
7864 - name : Test Site
7965 run : |
Original file line number Diff line number Diff line change 2121 with:
2222 ruby-version: 2.6.x
2323
24- - name: Install tools
25- run: |
26- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
27- sudo add-apt-repository ppa:rmescandon/yq
28- sudo apt update
29- sudo apt install yq -y
30-
3124 - name: Checkout
3225 uses: actions/checkout@v2
3326 with:
@@ -58,19 +51,19 @@ jobs:
5851
5952 - name: Check baseurl
6053 run: |
61- baseurl="$(grep '^baseurl:' _config.yml | yq r - baseurl )"
54+ baseurl="$(grep '^baseurl:' _config.yml | sed "s/.*: *//;s/['\"]//g;s/#.*//" )"
6255 if [[ -n $baseurl ]]; then
6356 echo "SPEC_TEST=_site_no_baseurl" >> $GITHUB_ENV
6457 fi
6558
6659 - name: Build Site
6760 run: |
68- bash tools/build.sh
61+ JEKYLL_ENV=production bundle exec jekyll b
6962
7063 if [[ -n $SPEC_TEST ]]; then
7164 # Bypass the defects of htmlproofer
72- bash tools/build.sh -b "" -d "$SPEC_TEST"
73- fi
65+ JEKYLL_ENV=production bundle exec jekyll b -b "" -d "$SPEC_TEST"
66+ fi
7467
7568 - name: Test Site
7669 run: |
Original file line number Diff line number Diff line change @@ -12,11 +12,8 @@ install:
1212
1313addons :
1414 apt :
15- sources :
16- - sourceline : " ppa:rmescandon/yq"
1715 packages :
1816 - libcurl4-openssl-dev # required to avoid SSL error (for htmlproofer)
19- - yq
2017
2118script :
2219 - git -C "$HOME" clone "$BUILDER_REPO" --depth=1 -q
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments