generated from frehburg/TemplateForPythonProjects
-
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.
* edits * fix * fix * edits
- Loading branch information
Showing
27 changed files
with
2,663 additions
and
398 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 |
---|---|---|
|
@@ -31,15 +31,24 @@ jobs: | |
mkdir -p gh-pages | ||
touch gh-pages/.nojekyll | ||
function branch_exists { | ||
git show-ref refs/heads/$1 > /dev/null 2>&1 | ||
} | ||
function build_docs { | ||
# The function will checkout a branch and build the Javadoc & documentation | ||
# into provided documentation directory. | ||
# The function will checkout a branch and build the Sphinx docs | ||
# into the provided documentation directory. | ||
BRANCH=${1} | ||
DOCDIR=${2} | ||
git checkout ${BRANCH} | ||
git fetch | ||
git pull | ||
if branch_exists ${BRANCH}; then | ||
git checkout ${BRANCH} | ||
git fetch | ||
git pull | ||
else | ||
echo "Branch ${BRANCH} does not exist. Skipping..." | ||
return | ||
fi | ||
## Init the target folder. | ||
# We will put all site documentation there. | ||
|
@@ -57,12 +66,11 @@ jobs: | |
cd .. | ||
} | ||
# We store the docs for `main` in `stable` dir | ||
# We store the docs for `main` in `stable` dir, if it exists | ||
build_docs main stable | ||
# We store the docs for `development` in `latest` dir | ||
# We store the docs for `develop` in `latest` dir | ||
build_docs develop latest | ||
- name: Deploy documentation | ||
if: ${{ github.event_name == 'push' }} | ||
uses: JamesIves/[email protected] | ||
|
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
File renamed without changes.
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
Oops, something went wrong.