Skip to content

Commit 805e4a5

Browse files
garyluudenis-yuen
authored andcommitted
Feature/fix delete branch script (#110)
* Testing * Test once more * Fetch all branches * Last index.md to change...hopefully * Don't use lower case
1 parent 495d967 commit 805e4a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/update-ghpages.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ set -o pipefail
44
set -o nounset
55
set -o xtrace
66
set -u
7-
BRANCH=$(echo "$TRAVIS_BRANCH" | awk '{print tolower($0)}')
7+
BRANCH=$(echo "$TRAVIS_BRANCH")
88
BRANCH_PATH="preview/$BRANCH"
99
git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
10-
git fetch origin gh-pages
10+
git fetch --deepen=50000
1111
#TODO: changes in the package-lock.json are breaking the build, see https://api.travis-ci.org/v3/job/544918298/log.txt
1212
git checkout package-lock.json
1313
git checkout gh-pages
@@ -23,7 +23,7 @@ if [[ -n "$(git status --porcelain "${BRANCH_PATH}")" && ${TRAVIS_PULL_REQUEST}
2323
bash scripts/create-table-of-contents.sh
2424
bash scripts/remove-docs-for-deleted-branches.sh
2525
git add preview
26-
git add index.md
26+
git add TableOfContents.md
2727
git commit -m "Docs changed for "${TRAVIS_BRANCH}""
2828
git push [email protected]:"${TRAVIS_REPO_SLUG}" gh-pages
2929
else

0 commit comments

Comments
 (0)