Skip to content

Commit

Permalink
Build: Use .gitattributes to filter release archives (apache#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbendick authored Sep 15, 2020
1 parent 809ccb3 commit 4660f6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev/source-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
set -e

if [ -z "$1" ]; then
echo "Usage: $0 <version> <rc-num>"
echo "Usage: $0 <version-num> <rc-num>"
exit
fi

if [ -z "$2" ]; then
echo "Usage: $0 <version> <rc-num>"
echo "Usage: $0 <version-num> <rc-num>"
exit
fi

Expand Down Expand Up @@ -66,7 +66,7 @@ tarball=$tag.tar.gz

# be conservative and use the release hash, even though git produces the same
# archive (identical hashes) using the scm tag
git archive $release_hash --prefix $tag/ -o $tarball .baseline api arrow bundled-guava common core data dev flink gradle gradlew hive mr orc parquet pig spark spark2 spark-runtime spark3 spark3-runtime LICENSE NOTICE README.md build.gradle baseline.gradle deploy.gradle tasks.gradle jmh.gradle gradle.properties settings.gradle versions.lock versions.props version.txt
git archive $release_hash --worktree-attributes --prefix $tag/ -o $tarball HEAD

# sign the archive
gpg --armor --output ${tarball}.asc --detach-sig $tarball
Expand Down

0 comments on commit 4660f6b

Please sign in to comment.