Skip to content

Commit 217f128

Browse files
author
Matthew Fisher
authored
Merge pull request #519 from bacongobbler/hotfix-gutenbuild
fix(gutenbuild): do not build any pre-release tags
2 parents ca5aa1f + 80f0551 commit 217f128

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

_scripts/gutenbuild

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,19 @@ set -x
55

66
build_dest=$1
77

8+
# ensure we are on the master branch before building
9+
git checkout master
10+
811
PATH=$HOME/.local/bin:$PATH BUILDDIR=${build_dest} make deps build
912

1013
# build again, this time to /en/dev
1114
dev_build_dest=$1/en/dev
1215
PATH=$HOME/.local/bin:$PATH BUILDDIR=${build_dest} make deps build
1316

1417
# also build each version of the docs out to /en/<tag>
15-
for tag in $(git tag); do
18+
# NOTE(bacongobbler): do not build any pre-release tags
19+
for tag in $(git tag | grep -v "-alpha\|-beta\|-rc"); do
1620
tag_build_dest="$build_dest/en/$tag"
1721
git checkout $tag
1822
PATH=$HOME/.local/bin:$PATH BUILDDIR=${tag_build_dest} make deps build
1923
done
20-
21-
# restore back to master
22-
git checkout master

0 commit comments

Comments
 (0)