0.0
No commit activity in last 3 years
No release in over 3 years
Allows you to easily publish your static website to S3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.0.0
 Project Readme

jekyll-publish Gem VersionBuild Status

The publish plugin for Jekyll to allow easy push of static site files to web hosting services. Currently only AWS S3 is supported, but are more coming!

Publish to S3

The publish command simply pushes all of the HTML, CSS, JS and XML files with the _site folder to a specified S3 bucket. Fear not, there is the ability to specify other file types to push too.

The command will "preserve" the folder structure by storing the file with the appropriate object key.

Set up AWS credentials using AWS Cli configure command or having a default profile in the /.aws/credentials file.

How to use

Within your _config.yml file add:

# Publish settings
bucket_name: <your_bucket_name>
aws_region: <aws_region>
include_file_extensions: <comma_seperated_file_extensions> #optional

then you can simply use:

jekyll publish

or you can pass region and bucket name as paramaters:

jekyll publish -r <region_name> -b <bucket_name>

You can also specify additional file extensions using:

jekyll publish -e jpg
jekyll publish -e jpg,png,txt,mov

Command line options will take precedence over settings within _config.yml

Why does this exist?

There are alternatives such as s3_website, however I wanted an simple command to publish straight from Jekyll and to keep web hosting settings within the site settings.

Contributions more than welcome!

Why can't I specify AWS Credentials in _config.yml?

For safety's sake. Prevent AWS credentials floating around and making their way to public repositories.