mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-18 22:16:18 -05:00
fix: update 2.3.x package and release flow
This commit is contained in:
2 files changed
+14
No files matched your search
@@ -33,11 +33,22 @@ release_snapshot() {
|
||||
}
|
||||
|
||||
release_tag() {
|
||||
local release_args=()
|
||||
|
||||
if existing_notes=$(gh -R "$REPO" release view "$TAG" --json body --jq .body 2>/dev/null); then
|
||||
RELEASE_NOTES="$existing_notes"
|
||||
fi
|
||||
|
||||
if [[ $TAG == v2.3.* ]]; then
|
||||
release_args+=(--latest=false)
|
||||
fi
|
||||
|
||||
echo "Removing existing release..."
|
||||
gh -R "$REPO" release delete $TAG --yes --cleanup-tag || true
|
||||
|
||||
echo "Creating release..."
|
||||
gh -R "$REPO" release create $TAG \
|
||||
"${release_args[@]}" \
|
||||
--title "$TAG" \
|
||||
--notes "$RELEASE_NOTES" \
|
||||
"$PROJECT_DIR"/.build/artifacts/artifact-source*/* \
|
||||
|
||||
Reference in new issue
Block a user