Skip to content

Commit

Permalink
Create github-pages.yml (#109)
Browse files Browse the repository at this point in the history
Builds site and commits static files to gh-pages branch on every commit to master branch.

Github pages only allows a small set of plugins. We recently added jekyll-tabs in #95, and will probably add more in the future. If this action works well, will update the site settings to serve what is in gh-pages branch.
  • Loading branch information
beets committed Dec 7, 2020
1 parent e71c06e commit 41e83b7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/github-pages.yml
@@ -0,0 +1,26 @@
# see https://jekyllrb.com/docs/continuous-integration/github-actions/

name: Build and deploy Jekyll site to GitHub Pages

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@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- uses: helaili/jekyll-action@2.0.1
env:
JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}

0 comments on commit 41e83b7

Please sign in to comment.