-
Notifications
You must be signed in to change notification settings - Fork 24
43 lines (37 loc) · 1.07 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
name: Deploy
on:
push:
branches:
master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
# https://github.com/actions/cache/blob/master/examples.md#ruby---bundler
- name: "Cache: Set up bundler cache"
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Use Node.js
uses: actions/setup-node@v1
with: { node-version: '12.x' }
- name: Use Ruby
uses: ruby/setup-ruby@v1
with: { ruby-version: '2.7' }
- name: Setup dependencies
run: |
npm i
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- run: npm run build && bundle exec jekyll build
- name: 🚀 deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site