-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.17 KB
/
build.yml
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
name: 'Build the site without deploying'
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '14'
cache: ${{ !env.ACT && 'npm' || '' }}
- name: Install npm packages
run: npm install
- name: Build with npm
run: npm build
- name: Update apt repos
run: sudo apt-get update
- name: Install imagemagick dependencies
run: sudo apt-get -y install imagemagick inkscape libmagickcore-dev libmagickwand-dev build-essential potrace
- name: Configure ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- name: Install bundle command
run: gem install bundler
- name: Install ruby dependencies
run: bundle install
- name: Build the site via Jekyll
run: bundle exec jekyll build --trace
env:
JEKYLL_ENV: production
- name: Run npm ci
run: npm ci
- name: Run gulp
run: gulp
- name: Copy the CNAME and other build additions to the site
run: cp ./BuildAdditions/* ./_site/