Overview
This document provides an analysis of a GitHub Action for Custom Jekyll Builds on GitHub Pages. The action allows users to build and deploy a Jekyll repository back to its gh-pages branch using their own custom Jekyll plugins and build scripts.
Features
- Custom Jekyll Builds: Users can build and deploy a Jekyll repository to its gh-pages branch.
- Custom Jekyll Plugins: The action allows users to use their own custom Jekyll plugins.
- Build Scripts: Users can execute their own build scripts during the deployment process.
Installation
To install the GitHub Action for Custom Jekyll Builds on GitHub Pages, follow these steps:
- Add the following code snippet to your
.github/workflows/main.ymlfile:
name: Jekyll Build and Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Install Dependencies
run: |
gem install bundler
bundle install
- name: Build and Deploy
run: |
bundle exec jekyll build
# Add any additional build commands here
# Deploy the build files to the gh-pages branch using your preferred deployment method
Ensure that you have a Gemfile in your repository that includes the necessary dependencies, such as Jekyll and any custom gems.
Set the
destinationproperty to./buildin your_config.ymlfile.Configure any custom Jekyll plugins or build scripts as needed.
Push your changes to the repository to trigger the GitHub Action.
Summary
The GitHub Action for Custom Jekyll Builds on GitHub Pages enables users to build and deploy Jekyll repositories back to their gh-pages branch. It provides the flexibility to use custom Jekyll plugins and build scripts, allowing for more customized and efficient deployments. By following the installation guide provided, users can easily set up and utilize this action in their GitHub workflows.