forked from CrayLabs/SmartSim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
304 additions
and
158 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: deploy_dev_docs | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
build_docs: | ||
name: build_dev_docs | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | ||
|
||
- name: build documentation with docker | ||
run: make docks | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
ref: doc | ||
path: doc-branch | ||
|
||
- name: Move over release docs and stubs | ||
run: | | ||
rm -rf doc-branch/docs/develop/ | ||
cp -r doc-branch/docs/* ./docs/ | ||
touch ./docs/.nojekyll | ||
touch ./docs/develop/.nojekyll | ||
rm -rf doc-branch | ||
- name: Commit files and push | ||
run: | | ||
git config --local user.email "spartee@hpe.com" | ||
git config --local user.name "Sam Partee" | ||
git checkout -b doc | ||
git add . | ||
git commit -m "Update develop documentation" | ||
git push -f origin doc | ||
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
Oops, something went wrong.