Skip to content

Instantly share code, notes, and snippets.

@bblanchon
Created June 14, 2021 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bblanchon/26da34ef46c6bc924a4b59334b9bcc17 to your computer and use it in GitHub Desktop.
Save bblanchon/26da34ef46c6bc924a4b59334b9bcc17 to your computer and use it in GitHub Desktop.
Faster Jekyll 4 builds on GitHub Actions
name: Build and deploy Jekyll site to GitHub Pages
on:
push:
branches:
- master
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Build
run: bundle exec jekyll build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: _site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment