mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 14:36:15 -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 BUILD_FE = 0
|
||||||
export LIBXML2_STATIC = 1
|
export LIBXML2_STATIC = 1
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
$(MAKE) build
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --no-parallel
|
dh $@ --no-parallel
|
||||||
@@ -33,11 +33,22 @@ release_snapshot() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
release_tag() {
|
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..."
|
echo "Removing existing release..."
|
||||||
gh -R "$REPO" release delete $TAG --yes --cleanup-tag || true
|
gh -R "$REPO" release delete $TAG --yes --cleanup-tag || true
|
||||||
|
|
||||||
echo "Creating release..."
|
echo "Creating release..."
|
||||||
gh -R "$REPO" release create $TAG \
|
gh -R "$REPO" release create $TAG \
|
||||||
|
"${release_args[@]}" \
|
||||||
--title "$TAG" \
|
--title "$TAG" \
|
||||||
--notes "$RELEASE_NOTES" \
|
--notes "$RELEASE_NOTES" \
|
||||||
"$PROJECT_DIR"/.build/artifacts/artifact-source*/* \
|
"$PROJECT_DIR"/.build/artifacts/artifact-source*/* \
|
||||||
|
|||||||
Reference in new issue
Block a user