From edb2be90e5302761dd12c84167706dc963a1ed1d Mon Sep 17 00:00:00 2001 From: Joao Moreira Date: Wed, 24 May 2017 18:56:43 -0500 Subject: [PATCH] Force gh_pages target to build site using production settings before publishing to GitHub Pages --- pelican/tools/templates/fabfile.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/tools/templates/fabfile.py.in b/pelican/tools/templates/fabfile.py.in index 48a1b0d9..7c52f28b 100644 --- a/pelican/tools/templates/fabfile.py.in +++ b/pelican/tools/templates/fabfile.py.in @@ -90,7 +90,7 @@ def publish(): def gh_pages(): """Publish to GitHub Pages""" - rebuild() + preview() local('ghp-import -b {github_pages_branch} ' '-m {commit_message} ' '{deploy_path} -p'.format(**env))