Skip to content

Commit

Permalink
Fix failure in deploying starkit docs (starkit#69)
Browse files Browse the repository at this point in the history
* Re-updated astropy_helpers to v2.0.10

* Fail the docs-CD pipeline if any command in deploy_docs.sh fails

* Don't try to push docs when it's PR build
  • Loading branch information
jaladh-singhal authored and wkerzendorf committed Sep 25, 2019
1 parent 9bb9f4a commit 3a90b81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions azure_pipelines/deploy_docs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e # Exit with nonzero exit code if anything fails

# Build the documentation from the SOURCE_BRANCH
# and push it to TARGET_BRANCH.
Expand Down Expand Up @@ -48,5 +49,7 @@ fi

# Otherwise, commit and push
git commit -m "Deploy to GitHub Pages: ${SHA}"
git push $SSH_REPO $TARGET_BRANCH
cd ..
# Don't push if it's a PR build because it doesn't have access rights to do so
if [ $BUILD_REASON != "PullRequest" ]; then
git push $SSH_REPO $TARGET_BRANCH
fi

0 comments on commit 3a90b81

Please sign in to comment.