-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix checkout for existing branch * Add docs build status to README * Fix docs build Co-authored-by: Ashwin Vaidya <[email protected]>
- Loading branch information
1 parent
300402a
commit 303c3a5
Showing
2 changed files
with
7 additions
and
2 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ on: | |
branches: [development] | ||
paths-ignore: | ||
- ".github/**" # Ignore changes towards the .github directory | ||
workflow_dispatch: # run on request (no need for PR) | ||
|
||
jobs: | ||
Build-and-Publish-Documentation: | ||
|
@@ -47,10 +48,13 @@ jobs: | |
fi | ||
- name: Push docs to gh-pages branch | ||
run: | | ||
cd .. | ||
git fetch | ||
git checkout gh-pages | ||
cp -r docs/build/html/* ./ | ||
mkdir -p /tmp/docs_build | ||
cp -r docs/build/html/* /tmp/docs_build/ | ||
rm -rf ./* | ||
cp -r /tmp/docs_build/* ./ | ||
rm -rf /tmp/docs_build | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add . | ||
|
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