Skip to content

Commit a471cac

Browse files
tbradshamatticbot
authored andcommitted
Jetpack: Enable autotagger, autorelease, and autopublish (#53797)
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/39290407968 Upstream-Ref: Automattic/jetpack@dd241a2
1 parent 88cd4b6 commit a471cac

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎.github/files/autorelease.sh‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,17 @@ fi
137137

138138

139139
echo "::group::Creating release"
140+
ARGS=()
141+
# Rolling tags have an `-alpha` suffix, but consumers rely on them being "Latest".
142+
if [[ -n "$ROLLING_MODE" ]]; then
143+
ARGS+=( --latest )
144+
elif [[ "$TAG" == *-* ]]; then
145+
ARGS+=( --prerelease )
146+
fi
140147
gh release create "$TAG" "$SLUG.zip" \
141148
--notes "$ENTRY" \
142149
--target "$GITHUB_SHA" \
143-
--title "$TITLE"
150+
--title "$TITLE" \
151+
"${ARGS[@]}"
144152

145153
echo "::endgroup::"

0 commit comments

Comments
 (0)