-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (53 loc) · 1.54 KB
/
deploy.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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: 'Build and deploy the site'
on:
push:
branches:
- master
jobs:
deploy:
# TODO(make this better)
permissions: write-all
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
env:
JEKYLL_ENV: production
- name: Run npm ci
run: npm ci
- name: Run gulp
run: gulp
env:
JEKYLL_ENV: production
- name: Copy the CNAME and other build additions to the site
run: cp ./BuildAdditions/* ./_site/
- name: Deploy the site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _site
publish_branch: gh_pages