Skip to content

Commit

Permalink
chore(dist): fix path when exporting source package (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
VGalaxies authored Nov 10, 2024
1 parent 3f38329 commit 1a0352e
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -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
5 changes: 3 additions & 2 deletions computer/computer-dist/scripts/apache-release.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1a0352e

Please sign in to comment.