-
Notifications
You must be signed in to change notification settings - Fork 45
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 #174 from aragilar/fix-api-docs
Hopefully fix API docs
- Loading branch information
Showing
3 changed files
with
21 additions
and
16 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
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 |
---|---|---|
|
@@ -2,18 +2,22 @@ | |
|
||
set -ex | ||
|
||
# Clone gh-pages | ||
git clone --branch gh-pages https://github.com/bmcage/odes gh-pages | ||
# Run rsync | ||
branch_name="$GITHUB_REF_NAME" | ||
rsync -av --delete "$API_DOCS_OUT_DIR" "./gh-pages/$branch_name/" | ||
# Run docs-versions-menu | ||
cd gh-pages | ||
docs-versions-menu | ||
# Commit and push | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add -A --verbose | ||
git status | ||
git commit --verbose -m "Auto-update from Github Actions Workflow" -m "Deployed from commit ${GITHUB_SHA} (${GITHUB_REF})" | ||
git push --verbose --force "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/bmcage" gh-pages | ||
if [ "true" = "$UPLOAD_SCIKITS_ODES_API_DOCS" ]; then | ||
# Clone gh-pages | ||
git clone --branch gh-pages https://github.com/bmcage/odes gh-pages | ||
# Run rsync | ||
branch_name="$GITHUB_REF_NAME" | ||
rsync -av --delete "$API_DOCS_OUT_DIR" "./gh-pages/$branch_name/" | ||
# Run docs-versions-menu | ||
cd gh-pages | ||
docs-versions-menu | ||
# Commit and push | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add -A --verbose | ||
git status | ||
git commit --verbose -m "Auto-update from Github Actions Workflow" -m "Deployed from commit ${GITHUB_SHA} (${GITHUB_REF})" | ||
git push --verbose --force "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/bmcage" gh-pages | ||
else | ||
echo "Skipping upload of API docs" | ||
fi |
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