Skip to content

Commit

Permalink
t1
Browse files Browse the repository at this point in the history
  • Loading branch information
melchor629 committed Mar 29, 2020
1 parent 51775ff commit cf84260
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/docker/versioning-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ function build_docs {
} >> "build/docs/$1/index.html"
}

current_branch="$(git rev-parse --abbrev-ref HEAD)"

git checkout -- .
git clean -fdx .

Expand All @@ -41,7 +43,10 @@ git checkout dev
git pull
build_docs "dev"

git checkout "${current_branch}"

for tag in $(git tag | grep -E '^v?\d+\.\d+\.\d+' | python ./docs/docker/versioning-build-grab-latest-minor.py); do
echo " > ${tag}"
git checkout "$tag"
if [[ -d docs ]] && [[ -f docs/requirements.txt ]]; then
echo Building docs for version "$tag"
Expand Down

0 comments on commit cf84260

Please sign in to comment.