From b2c1ec670afdf17bf9365abec13ecea884ab3e73 Mon Sep 17 00:00:00 2001 From: V_Galaxy Date: Sun, 10 Nov 2024 20:24:54 +0800 Subject: [PATCH] fix --- .gitattributes | 4 +++- computer/computer-dist/scripts/apache-release.sh | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitattributes b/.gitattributes index 1b26b132c..170b481e9 100755 --- a/.gitattributes +++ b/.gitattributes @@ -6,4 +6,6 @@ # ignored directory .github/ export-ignore -computer-k8s-operator/crd-generate/bin/ export-ignore +computer/computer-k8s-operator/crd-generate/bin/ export-ignore +computer/computer-dist/scripts/ export-ignore +computer/computer-dist/release-docs/ export-ignore diff --git a/computer/computer-dist/scripts/apache-release.sh b/computer/computer-dist/scripts/apache-release.sh index d3b948926..9ed75d9da 100755 --- a/computer/computer-dist/scripts/apache-release.sh +++ b/computer/computer-dist/scripts/apache-release.sh @@ -39,9 +39,10 @@ echo "In the work dir: $(pwd)" rm -rf dist && mkdir -p dist/apache-${REPO} # step1: package the source code -cd ../../ || exit +cd ../../../ || exit +pwd git archive --format=tar.gz \ - --output="computer-dist/scripts/dist/apache-${REPO}/apache-${REPO}-incubating-${RELEASE_VERSION}-src.tar.gz" \ + --output="computer/computer-dist/scripts/dist/apache-${REPO}/apache-${REPO}-incubating-${RELEASE_VERSION}-src.tar.gz" \ --prefix="apache-${REPO}-incubating-${RELEASE_VERSION}-src/" "${GIT_BRANCH}" || exit cd - || exit