Skip to content
Permalink
7476e98f2b
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?
Go to file
Yoann Chaudet nit
Latest commit 4ad87e1 Dec 28, 2022 History
0 contributors

Users who have contributed to this file

executable file 37 lines (30 sloc) 1.05 KB
#!/bin/bash
####################################################################################################
#
# Calls github-pages executable to build the site using allowed plugins and supported configuration
#
####################################################################################################
set -o errexit
SOURCE_DIRECTORY=${GITHUB_WORKSPACE}/$INPUT_SOURCE
DESTINATION_DIRECTORY=${GITHUB_WORKSPACE}/$INPUT_DESTINATION
PAGES_GEM_HOME=$BUNDLE_APP_CONFIG
GITHUB_PAGES=$PAGES_GEM_HOME/bin/github-pages
# Set environment variables required by supported plugins
export JEKYLL_ENV="production"
export JEKYLL_GITHUB_TOKEN=$INPUT_TOKEN
export PAGES_REPO_NWO=$GITHUB_REPOSITORY
export JEKYLL_BUILD_REVISION=$INPUT_BUILD_REVISION
# Set verbose flag
if [ "$INPUT_VERBOSE" = 'true' ]; then
VERBOSE='--verbose'
else
VERBOSE=''
fi
# Set future flag
if [ "$INPUT_FUTURE" = 'true' ]; then
FUTURE='--future'
else
FUTURE=''
fi
cd "$PAGES_GEM_HOME"
$GITHUB_PAGES build "$VERBOSE" "$FUTURE" --source "$SOURCE_DIRECTORY" --destination "$DESTINATION_DIRECTORY"