68107d3ea8
This commit duplicates the telemetry logic in the actions/deploy-pages action. This Gemfile already pulls in Faraday as a dependency of octokit; the change to Gemfile just makes its use explicit. There aren't any changes when you compare the resulting Gemfile.lock.
40 lines
1.1 KiB
Bash
Executable File
40 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
#######################################################################################################
|
|
#
|
|
# Calls github-pages executable to build the site using whitelisted 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"
|
|
|
|
/emit_telemetry
|