adding github workflow for actions GH pages

This commit is contained in:
Charles 2021-01-13 19:04:17 -05:00
parent c46c9e114a
commit 0ecc3ede60
No known key found for this signature in database
GPG Key ID: 251655CC546D9787

26
.github/workflows/jekyll.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Build and Deploy GH Pages with Jekyll Actions
on:
push:
branches:
- master
jobs:
jekyll:
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@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- uses: helaili/jekyll-action@2.0.1
env:
# Ideally use GITHUB_TOKEN but it gives error for this action.
JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}