-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 915 Bytes
/
site-ci.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: Jekyll site CI
on:
push:
branches:
# Only build on the website-v2 branch
- website-v2
# Allow for manual deployments
workflow_dispatch:
jobs:
build:
name: Build site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: website-v2
# Used to setup NodeJS
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Install dependencies
run: npm ci
- name: Build and deploy site
uses: EdricChan03/action-build-deploy-ghpages@v2.6.0
with:
github_token: ${{ github.token }}
git_force: 'false'
override_gh_pages_branch: 'true'
show_bundle_log: 'true'
bundler_version: '2.1.4'