-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #855 from Mirantis/ivan4th/rename-gh-pages-branch-…
…to-docs Use 'docs' branch instead of 'gh-pages'
- Loading branch information
Showing
3 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -412,20 +412,20 @@ jobs: | |
- restore_cache: | ||
<<: *restore_image_cache | ||
- run: | ||
name: Update docs and push them to gh-pages branch | ||
name: Update docs and push them to docs branch | ||
command: | | ||
build/portforward.sh 18730& | ||
git config --global user.email [email protected] | ||
git config --global user.name virtlet-bot | ||
git fetch -f https://github.com/Mirantis/virtlet.git gh-pages:gh-pages | ||
git fetch -f https://github.com/Mirantis/virtlet.git docs:docs | ||
build/cmd.sh build-docs | ||
if [[ ${CIRCLE_BRANCH:-} != ${DOCS_SOURCE_BRANCH} ]]; then | ||
echo >&2 "Not updating gh-pages branch: current branch is ${CIRCLE_BRANCH:-} not ${DOCS_SOURCE_BRANCH}" | ||
echo >&2 "Not updating docs branch: current branch is ${CIRCLE_BRANCH:-} not ${DOCS_SOURCE_BRANCH}" | ||
elif [[ ! ${GITHUB_TOKEN:-} ]]; then | ||
echo >&2 "Not updating gh-pages branch: missing GITHUB_TOKEN env var" | ||
echo >&2 "Not updating docs branch: missing GITHUB_TOKEN env var" | ||
else | ||
# if the docs didn't change, this push will do nothing | ||
git push https://${GITHUB_TOKEN}@github.com/Mirantis/virtlet.git gh-pages:gh-pages | ||
git push https://${GITHUB_TOKEN}@github.com/Mirantis/virtlet.git docs:docs | ||
fi | ||
tar -czf /tmp/docs.tar.gz _docs | ||
- store_artifacts: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters