Skip to content

Commit b9d66bb

Browse files
authored
Merge pull request #736 from buildkite/update-publish
Fix publish script to support beta tags
2 parents 672a267 + fd4c543 commit b9d66bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.buildkite/steps/publish.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ is_latest_tag() {
55
[[ "$BUILDKITE_TAG" = $(git describe --abbrev=0 --tags --match 'v*') ]]
66
}
77

8-
is_release_candidate_tag() {
9-
[[ "$BUILDKITE_TAG" =~ -rc ]]
8+
is_prerelease_tag() {
9+
[[ "$BUILDKITE_TAG" =~ - ]]
1010
}
1111

1212
s3_upload_templates() {
@@ -33,7 +33,7 @@ make build/aws-stack.yml
3333

3434
# Publish the top-level mappings only on when we see the most recent tag on master
3535
if is_latest_tag ; then
36-
if ! is_release_candidate_tag ; then
36+
if ! is_prerelease_tag ; then
3737
s3_upload_templates "latest/"
3838
fi
3939
s3_upload_templates

0 commit comments

Comments
 (0)