Skip to content

Commit b158ea2

Browse files
authored
Merge pull request #503 from alephium/add-test-support
Add support for test dist tag
2 parents 0829c6a + b220cf2 commit b158ea2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- 'v[0-9]+.[0-9]+.[0-9]+'
77
- 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
88
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
9+
- 'v[0-9]+.[0-9]+.[0-9]+-test.[0-9]+'
910
workflow_dispatch:
1011

1112
jobs:
@@ -29,7 +30,8 @@ jobs:
2930
dist_tag=$([[ $tag =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo latest || echo "")
3031
dist_tag=$([[ $tag =~ ^[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$ ]] && echo rc || echo $dist_tag)
3132
dist_tag=$([[ $tag =~ ^[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+$ ]] && echo beta || echo $dist_tag)
32-
[ -z "$dist_tag" ] && echo "Distribution tag is not set to latest nor to rc or beta" && exit 1
33+
dist_tag=$([[ $tag =~ ^[0-9]+\.[0-9]+\.[0-9]+-test\.[0-9]+$ ]] && echo test || echo $dist_tag)
34+
[ -z "$dist_tag" ] && echo "Distribution tag is not set to latest nor to rc or beta or test" && exit 1
3335
echo ::set-output name=DIST_TAG::$dist_tag
3436
shell: bash
3537
publish:

0 commit comments

Comments
 (0)