-
Notifications
You must be signed in to change notification settings - Fork 27
33 lines (31 loc) · 911 Bytes
/
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
name: build
on:
push:
branches: [site]
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Bundler cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-bundler-${{ hashFiles('Gemfile.lock') }}
restore-keys: |-
${{ runner.os }}-bundler-
${{ runner.os }}-
- name: Install dependencies
run: bash script/install --deploy
- name: Build
run: bash script/build --deploy
env:
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JEKYLL_ENV: production
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PAGES_REPO_NWO: ${{ env.GITHUB_REPOSITORY }}