-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.15 KB
/
main.yml
File metadata and controls
35 lines (32 loc) · 1.15 KB
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
name: CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/setup-ruby-for-use-with-actions
- name: Setup Ruby for use with actions
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6 # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Checkout
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false
- name: Build Jekyll page
# alternative: https://github.com/marketplace/actions/jekyll-action
run: |
gem update bundler
bundle install
bundle exec jekyll build --trace
# https://github.com/marketplace/actions/deploy-to-github-pages
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3.2.1
with:
ACCESS_TOKEN: ${{ secrets.GH_PAT }}
BRANCH: gh-pages
FOLDER: _site/