Skip to content

Commit cb7fc44

Browse files
fkwpjmartinesp
andauthored
Backport: Misc/android allow rcs to be published as non snapshot versions (#3506)
* Android: allow RCs to be published as non-SNAPSHOT versions * Fix broken string in build script --------- Co-authored-by: Jorge Martín <[email protected]>
1 parent 93a1a6a commit cb7fc44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/publish-embedded-packages.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
run: |
4545
if [[ "${VERSION}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
4646
echo "TAG=latest" >> "$GITHUB_OUTPUT"
47+
elif [[ "${VERSION}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+\-rc\.[0-9]+$ ]]; then
48+
echo "TAG=rc" >> "$GITHUB_OUTPUT"
4749
else
4850
echo "TAG=other" >> "$GITHUB_OUTPUT"
4951
fi
@@ -163,6 +165,8 @@ jobs:
163165
run: |
164166
if [[ "${{ needs.versioning.outputs.TAG }}" == "latest" ]]; then
165167
echo "ARTIFACT_VERSION=${{ needs.versioning.outputs.UNPREFIXED_VERSION }}" >> "$GITHUB_ENV"
168+
elif [[ "${{ needs.versioning.outputs.TAG }}" == "rc" ]]; then
169+
echo "ARTIFACT_VERSION=${{ needs.versioning.outputs.UNPREFIXED_VERSION }}" >> "$GITHUB_ENV"
166170
else
167171
echo "ARTIFACT_VERSION=${{ needs.versioning.outputs.UNPREFIXED_VERSION }}-SNAPSHOT" >> "$GITHUB_ENV"
168172
fi

0 commit comments

Comments
 (0)