Skip to content
A simple bash script for hosting 11ty sites on Github pages.
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
git-push.sh

README.md

Using Github pages to host Eleventy sites

A simple bash script that:

  • Removes an existing docs/ directory
  • Creates a new 'docs/' directory by copying the '_site/' directory
  • Adds files to the commit
  • Requests a commit message
  • Commits and pushes the changes

Installation

Drop this .sh file into a /bin/ directory in the root of your project.

Usage

Run sh bin/git-push.sh from the root of your project.

You can’t perform that action at this time.