Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dist): fix path when exporting source package #319

Merged
merged 1 commit into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Up @@ -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

Expand Down
Loading