Skip to content

Commit ca5aa1f

Browse files
authored
Merge pull request #461 from bacongobbler/tagged-versions
feat(_scripts): build every tagged version of workflow docs
2 parents 149c957 + a3a25c0 commit ca5aa1f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

_scripts/gutenbuild

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,17 @@ set -x
66
build_dest=$1
77

88
PATH=$HOME/.local/bin:$PATH BUILDDIR=${build_dest} make deps build
9+
10+
# build again, this time to /en/dev
11+
dev_build_dest=$1/en/dev
12+
PATH=$HOME/.local/bin:$PATH BUILDDIR=${build_dest} make deps build
13+
14+
# also build each version of the docs out to /en/<tag>
15+
for tag in $(git tag); do
16+
tag_build_dest="$build_dest/en/$tag"
17+
git checkout $tag
18+
PATH=$HOME/.local/bin:$PATH BUILDDIR=${tag_build_dest} make deps build
19+
done
20+
21+
# restore back to master
22+
git checkout master

0 commit comments

Comments
 (0)