mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-17 13:46:27 -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
@@ -4,5 +4,8 @@ export OFFLINE = @OFFLINE@
|
||||
export BUILD_FE = 0
|
||||
export LIBXML2_STATIC = 1
|
||||
|
||||
override_dh_auto_build:
|
||||
$(MAKE) build
|
||||
|
||||
%:
|
||||
dh $@ --no-parallel
|
||||
@@ -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