Skip to content

Commit e48db66

Browse files
committed
Update workflow
1 parent 57a2528 commit e48db66

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/virtualmin+cloudmin.dev+slib.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ on:
66
- master
77
release:
88
types:
9-
- published
9+
- prereleased
10+
- released
1011

1112
env:
1213
GH_REPO: ${{ github.repository }}
1314
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1415

1516
IS_RELEASE: ${{ github.event_name == 'release' }}
17+
IS_PRERELEASE: ${{ github.event.release.prerelease || false }}
1618

1719
BUILD_DEPS: "curl"
1820
BUILD_BOOTSTRAP: "https://raw.githubusercontent.com/webmin/webmin-ci-cd/main/build/bootstrap.bash"
@@ -53,7 +55,10 @@ jobs:
5355
set -euo pipefail
5456
5557
# Bootstrap build
56-
source bootstrap.bash $([[ "$IS_RELEASE" == "true" ]] || echo "--testing")
58+
source bootstrap.bash $([[ "$IS_RELEASE" == "true" ]] || echo "--testing") $([[ "$IS_PRERELEASE" == "true" ]] && echo "--prerelease")
59+
source bootstrap.bash \
60+
$([[ "$IS_RELEASE" != "true" ]] && echo "--testing") \
61+
$([[ "$IS_PRERELEASE" == "true" ]] && echo "--prerelease")
5762
5863
# Get package version
5964
pkg_version=$(get_remote_git_tag_version "$GH_REPO" "$GH_TOKEN" "$IS_RELEASE")

0 commit comments

Comments
 (0)