Skip to content

victoriadrake/jekyll-cd

Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

GitHub Action to build and deploy a Jekyll site to GitHub Pages πŸ§ͺ

This action builds your Jekyll site to docs/ in the same repository and pushes the changes to master.

You can automatically serve your updated site with GitHub Pages by choosing the docs/ folder as your source.

This action will run bundle install and build your site, so please make sure your repository contains all the necessary files for doing so.

For more help, see Setting up a GitHub Pages site with Jekyll.

Add action to your workflow

Here is an example workflow file that uses this action on any push event to the master branch:

name: jekyll-cd

on:
  push:
    branches:
      - master

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
      - name: πŸ›Ž Check out master
        uses: actions/checkout@master
        with:
          fetch-depth: 1
      - name: πŸ§ͺ Build and deploy
        uses: victoriadrake/jekyll-cd@master

Use the workflow YAML file directly

If you prefer to place this action's YAML file in your repository directly, simply copy the included jekyll-cd.yml into your repository's .github/workflows/ directory.

For help editing the YAML file, see Workflow syntax for GitHub Actions.