28 lines
666 B
YAML
Raw Normal View History

2021-01-13 21:35:44 -05:00
name: Build and Deploy GH Pages with Jekyll Actions
2021-01-13 21:21:06 -05:00
on:
push:
branches:
- master
jobs:
github-pages:
2021-01-13 21:35:44 -05:00
runs-on: ubuntu-16.04
2021-01-13 21:21:06 -05:00
steps:
- uses: actions/checkout@v2
2021-01-13 21:35:44 -05:00
# 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: helaili/jekyll-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
2021-01-13 21:35:44 -05:00
target_branch: 'gh-pages'