2022-02-01 22:19:18 -05:00
|
|
|
#! /usr/bin/env sh
|
|
|
|
|
|
2022-02-02 12:39:12 -05:00
|
|
|
if [ "local" = "$1" ]; then
|
2022-07-27 13:15:40 -07:00
|
|
|
export JEKYLL_ENV=production
|
|
|
|
|
export PAGES_REPO_NWO=actions/jekyll-build-pages
|
|
|
|
|
export JEKYLL_BUILD_REVISION=JEKYLL_BUILD_REVISION
|
2022-02-01 22:19:18 -05:00
|
|
|
|
2022-12-28 09:35:14 -08:00
|
|
|
for dir in test_projects/*
|
2022-07-27 13:15:40 -07:00
|
|
|
do
|
2022-12-28 09:35:14 -08:00
|
|
|
bundle exec github-pages build --verbose -s "test_projects/${dir}" -d "test_projects/${dir}/_expected"
|
2022-07-27 13:15:40 -07:00
|
|
|
done
|
2022-02-02 12:39:12 -05:00
|
|
|
else
|
2022-07-27 13:15:40 -07:00
|
|
|
act -b -s GITHUB_TOKEN -j record-expected-output
|
2022-02-02 12:39:12 -05:00
|
|
|
fi
|