-
-
Notifications
You must be signed in to change notification settings - Fork 12
36 lines (34 loc) · 880 Bytes
/
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
name: gh-pages
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
bundler-cache: true
- name: build site
run: |
bundle exec jekyll build
mv _site/serve_config.yml _site/_config.yml
mv docs _site/
mv .well-known _site/
- name: deploy gh-pages
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
cname: cutter.re
force_orphan: true
exclude_assets: ".bundle,.sass-cache,Gemfile*,.gitignore,.github,README.md"