29 lines
682 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
2021-01-13 21:21:06 -05:00
env:
JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}
2021-01-13 21:35:44 -05:00
with:
target_branch: 'gh-pages'