Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy.sh: move first logging to earlier to help debugging #72

Merged
merged 1 commit into from
Aug 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions resources.whatwg.org/build/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,15 @@ if [[ "$TRAVIS" != "true" ]]; then
echo ""
fi

SHA=$(git rev-parse HEAD)
BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ "$TRAVIS" == "true" ]]; then # For some reason the above does not work on Travis
BRANCH=$TRAVIS_BRANCH
fi
SHA=$(git rev-parse HEAD)

echo "Branch = $BRANCH"
echo "Commit = $SHA"
echo ""

SERVICE_WORKER_SHA=$(curl https://api.github.com/repos/whatwg/whatwg.org/contents/resources.whatwg.org/standard-service-worker.js \
-H "Accept: application/vnd.github.v3+json" \
Expand All @@ -58,10 +62,6 @@ SERVICE_WORKER_SHA=$(curl https://api.github.com/repos/whatwg/whatwg.org/content
BACK_TO_LS_LINK="<a href=\"/\" id=\"commit-snapshot-link\">Go to the living standard</a>"
SNAPSHOT_LINK="<a href=\"/commit-snapshots/$SHA/\" id=\"commit-snapshot-link\">Snapshot as of this commit</a>"

echo "Branch = $BRANCH"
echo "Commit = $SHA"
echo ""

rm -rf "$WEB_ROOT" || exit 0

copy_extra_files() {
Expand Down