Skip to content

Commit

Permalink
Feature/fix delete branch script (#110)
Browse files Browse the repository at this point in the history
* Testing

* Test once more

* Fetch all branches

* Last index.md to change...hopefully

* Don't use lower case
  • Loading branch information
garyluu authored and denis-yuen committed Aug 21, 2019
1 parent 495d967 commit 805e4a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/update-ghpages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ set -o pipefail
set -o nounset
set -o xtrace
set -u
BRANCH=$(echo "$TRAVIS_BRANCH" | awk '{print tolower($0)}')
BRANCH=$(echo "$TRAVIS_BRANCH")
BRANCH_PATH="preview/$BRANCH"
git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
git fetch origin gh-pages
git fetch --deepen=50000
#TODO: changes in the package-lock.json are breaking the build, see https://api.travis-ci.org/v3/job/544918298/log.txt
git checkout package-lock.json
git checkout gh-pages
Expand All @@ -23,7 +23,7 @@ if [[ -n "$(git status --porcelain "${BRANCH_PATH}")" && ${TRAVIS_PULL_REQUEST}
bash scripts/create-table-of-contents.sh
bash scripts/remove-docs-for-deleted-branches.sh
git add preview
git add index.md
git add TableOfContents.md
git commit -m "Docs changed for "${TRAVIS_BRANCH}""
git push git@github.com:"${TRAVIS_REPO_SLUG}" gh-pages
else
Expand Down

0 comments on commit 805e4a5

Please sign in to comment.