28 lines
672 B
YAML
28 lines
672 B
YAML
name: Build and Deploy GH Pages with Jekyll Actions
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
github-pages:
|
|
runs-on: ubuntu-16.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
# Use GitHub Actions' cache to shorten build times and decrease load on servers.
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: vendor/bundle
|
|
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gems-
|
|
|
|
# Specify the target branch (optional)
|
|
- uses: SharpeTronics/jekyll-action@v2
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
target_branch: 'gh-pages'
|