Created
June 14, 2021 16:33
-
-
Save bblanchon/26da34ef46c6bc924a4b59334b9bcc17 to your computer and use it in GitHub Desktop.
Faster Jekyll 4 builds on GitHub Actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
with: | |
branch: gh-pages | |
folder: _site |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment