diff --git a/packaging/deb/rules.in b/packaging/deb/rules.in index 3d3dc3f..019ab5b 100755 --- a/packaging/deb/rules.in +++ b/packaging/deb/rules.in @@ -4,5 +4,8 @@ export OFFLINE = @OFFLINE@ export BUILD_FE = 0 export LIBXML2_STATIC = 1 +override_dh_auto_build: + $(MAKE) build + %: dh $@ --no-parallel diff --git a/scripts/gh-release.sh b/scripts/gh-release.sh index 8aa6918..b59bbe1 100755 --- a/scripts/gh-release.sh +++ b/scripts/gh-release.sh @@ -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*/* \