-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 1.09 KB
/
jekyll.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
name: Build and Deploy
on:
push:
branches:
- main
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
# Use GitHub Actions' cache to cache dependencies on servers
- name: Cache 🪵
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
# Sets bundler and gems
- name: Set up Ruby 💎
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
# Build the site with jekyll
- name: Build 🏗️
run: bundle exec jekyll build --trace
# Deploy
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _site # The folder the action should deploy.
branch: docs # The target branch