-
Notifications
You must be signed in to change notification settings - Fork 17
49 lines (40 loc) · 1.06 KB
/
main.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
44
45
46
47
48
name: Ruby
on:
push:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
ruby: [2.6.0]
steps:
- name: Check out develop
uses: actions/checkout@v2
with:
ref: develop
- uses: actions/cache@v2
with:
path: ~/.cache
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: ${{ runner.os }}-gems-
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: gem update
run: gem update --system
- name: Set up Bundler
run: gem install bundler
- name: Install dependencies
run: bundle install
- name: jekyll build
run: bundle exec jekyll build --drafts
- name: Create GitHub deployment
uses: peaceiris/actions-gh-pages@v3
with:
github_token: "${{ github.token }}"
publish_branch: master
publish_dir: _site
enable_jekyll: true
cname: xdag.io