This repository was archived by the owner on Dec 17, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
82 lines (80 loc) · 2.16 KB
/
website.yml
File metadata and controls
82 lines (80 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: website
on:
pull_request:
branches:
- dev
push:
branches:
- dev
jobs:
publish:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 11
-
name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
-
name: Set up gems cache
uses: actions/cache@v3.0.11
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
-
name: Set up node_modules cache
uses: actions/cache@v3.0.11
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
-
name: Set up Bundler
run: |
gem uninstall -aIx bundler
gem install bundler -v 2.0.2
-
name: Yarn install
run: |
npm install -g yarn
yarn install --frozen-lockfile
-
name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
-
name: Build
env:
JEKYLL_ENV: production
JEKYLL_LOG_LEVEL: info
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gulp --env=production build
#htmlproofer ./web/download --allow-missing-href --allow-hash-href --assume_extension --check-favicon --http-status-ignore 403 --only-4xx --alt-ignore "/.*/" --log-level=:debug
-
name: Check GitHub Pages status
uses: crazy-max/ghaction-github-status@v2
with:
pages_threshold: major_outage
-
name: Deploy
if: success() && github.event_name != 'pull_request'
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: master
build_dir: web
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}