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

GH-41102: [Packaging][Release] Create unique git tags for release candidates (e.g. apache-arrow-{MAJOR}.{MINOR}.{PATCH}-rc{RC_NUM}) #41131

Merged
merged 120 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
96ef703
Modified 01-prepare.sh to create a release-candidate tag instead of a
sgilmore10 Apr 9, 2024
905c72f
Update release candidate tag name to push in instructions
sgilmore10 Apr 9, 2024
b2539bb
Update tag name in release documentation
sgilmore10 Apr 9, 2024
e0698a9
Update tag name in 02-source.sh script
sgilmore10 Apr 9, 2024
dde3fd7
Update tag name in 03-binary-submit.sh
sgilmore10 Apr 9, 2024
4027976
Update tag name in 02-source-test.rb
sgilmore10 Apr 9, 2024
0fb6c7d
Add publish-release workflow
sgilmore10 Apr 9, 2024
605ef86
Add workflow to publish release candidate
sgilmore10 Apr 9, 2024
07437d2
Refactor publish_release.yml
sgilmore10 Apr 10, 2024
c924cc8
Delete obsolete comment
sgilmore10 Apr 10, 2024
9e9dc8c
Set env variable GH_TOKEN at the top
sgilmore10 Apr 10, 2024
7d2e6ed
Update step name in publish_release.yml
sgilmore10 Apr 10, 2024
7d43aa5
Add --repo flag
sgilmore10 Apr 10, 2024
5036ca6
Remove --target flag and add --verify-tag flag to gh release create
sgilmore10 Apr 10, 2024
15f5450
Update publish_release_candidate.yml name from Package to Publish Rel…
sgilmore10 Apr 10, 2024
30d2ac5
Update comments about workflow trigger
sgilmore10 Apr 10, 2024
fd2e92b
Update post-02-binary.sh to create the release git tag
sgilmore10 Apr 10, 2024
e894af7
Wait for Publish Release Workflow to finish
sgilmore10 Apr 10, 2024
720da34
Replace hard-coded workflow id value passed to gh run watch with vari…
sgilmore10 Apr 10, 2024
e8ec1c1
Add script to delete release candidates once the release is published
sgilmore10 Apr 10, 2024
5031ef6
Add step deleting for deleting the release candidates to the release …
sgilmore10 Apr 10, 2024
9fa02c9
Update git tag message to include release candidate number
sgilmore10 Apr 10, 2024
cf733ab
Update docs/source/developers/release.rst
sgilmore10 Apr 11, 2024
e941f19
Update .github/workflows/publish_release.yml
sgilmore10 Apr 11, 2024
1bfa56e
Update .github/workflows/publish_release.yml
sgilmore10 Apr 11, 2024
0425eed
Update .github/workflows/publish_release.yml
sgilmore10 Apr 11, 2024
6952fa2
Update .github/workflows/publish_release.yml
sgilmore10 Apr 11, 2024
8c72987
Update .github/workflows/publish_release.yml
sgilmore10 Apr 11, 2024
13d1bec
Update .github/workflows/publish_release.yml
sgilmore10 Apr 11, 2024
d6e28e9
Update .github/workflows/publish_release.yml
sgilmore10 Apr 11, 2024
95c1b7a
Update .github/workflows/publish_release.yml
sgilmore10 Apr 11, 2024
7791d41
Update .github/workflows/publish_release_candidate.yml
sgilmore10 Apr 11, 2024
454665d
Update .github/workflows/publish_release_candidate.yml
sgilmore10 Apr 11, 2024
93bf93e
Update .github/workflows/publish_release_candidate.yml
sgilmore10 Apr 11, 2024
397f534
Update .github/workflows/publish_release_candidate.yml
sgilmore10 Apr 11, 2024
d706fdf
Update .github/workflows/publish_release.yml
sgilmore10 Apr 11, 2024
2941b9e
Update .github/workflows/publish_release_candidate.yml
sgilmore10 Apr 11, 2024
1e87df1
Update .github/workflows/publish_release_candidate.yml
sgilmore10 Apr 11, 2024
afc0c95
Update .github/workflows/publish_release_candidate.yml
sgilmore10 Apr 11, 2024
759a415
Update comment about workflow trigger
sgilmore10 Apr 11, 2024
f0e7664
Rename publish_release.yml to release.yml
sgilmore10 Apr 11, 2024
bfebafb
Update tag patterns that trigger the release workflow
sgilmore10 Apr 11, 2024
4e0a2b6
Merge workflows creating release and release candidates into one work…
sgilmore10 Apr 11, 2024
b2113ab
Add newline to end of file
sgilmore10 Apr 11, 2024
a677e22
Use apache-arrow-X.Y.Z.tar.gz instead of apache-arrow-X.Y.Z.-rcN.tar.gz
sgilmore10 Apr 11, 2024
0752d4d
Delete dev/release/post-16-delete-release-candidates.sh
sgilmore10 Apr 11, 2024
c24aa88
Fix archive name in 02-source-test.rb
sgilmore10 Apr 11, 2024
5591fc9
1. Added dev/release/post-01-tag.sh
sgilmore10 Apr 11, 2024
dc48f7e
Update script names in release.rst
sgilmore10 Apr 11, 2024
b221ff6
Restrict workflow to maint-X.Y.Z, release-X.Y.Z, and release-X.Y.Z-rc…
sgilmore10 Apr 11, 2024
772ac44
Update dev/release/post-01-tag.sh
sgilmore10 Apr 12, 2024
bacf80d
Split release and release candidate workflows into separate files
sgilmore10 Apr 12, 2024
91bcac3
1. Remove gh command to watching release workflow
sgilmore10 Apr 12, 2024
60efd41
Update docs/source/developers/release.rst
sgilmore10 Apr 15, 2024
e82fa6d
Add logic to create release tarball to release_candidate.yml workflow
sgilmore10 Apr 15, 2024
7e4f481
Fix reference to version env variable
sgilmore10 Apr 15, 2024
143bd41
Download source tarball from release candidate instead in 02-source.sh
sgilmore10 Apr 15, 2024
648d266
Set GH_TOKEN env variable in "Run Release Test" step of the dev workflow
sgilmore10 Apr 15, 2024
0d66b16
Add script to create release tarball
sgilmore10 Apr 15, 2024
924e373
Use utils-create-release-tarball in release_candidate workflow
sgilmore10 Apr 15, 2024
6235cc1
Call utils-create-release-tarball in 02-source.sh is TEST_RELEASE_SCRIPT
sgilmore10 Apr 15, 2024
9291890
Set TEST_RELEASE_SCRIPT env variable to 1
sgilmore10 Apr 15, 2024
a0c7363
Fix path to utils-create-release-tarball.sh
sgilmore10 Apr 15, 2024
4b016a1
Fix path to utils-create-release-tarball.sh
sgilmore10 Apr 15, 2024
73a638a
remove dev/release from path to utils-create-release-tarball.sh
sgilmore10 Apr 15, 2024
71ce7a3
Add utils-create-release-tarball.sh
sgilmore10 Apr 15, 2024
410569b
Add +x permissions to utils-create-release-tarball.sh
sgilmore10 Apr 15, 2024
8a3c186
Add SOURCE_TOP_DIR and SOURCE_DIR variables
sgilmore10 Apr 15, 2024
4ebd7ce
GITHUB_REF_NAME -> tag
sgilmore10 Apr 15, 2024
daaff3c
Remove extra cd call
sgilmore10 Apr 15, 2024
046263a
RELEASE_HASH -> release_hash
sgilmore10 Apr 15, 2024
52149ca
Call utils-create-release-tarball.sh from within dev/release directory
sgilmore10 Apr 15, 2024
00ee47d
fix path to release tarball
sgilmore10 Apr 16, 2024
ea2d008
Update docs/source/developers/release.rst
sgilmore10 Apr 16, 2024
c707d08
Update dev/release/utils-create-release-tarball.sh
sgilmore10 Apr 16, 2024
be681d1
Update dev/release/02-source.sh
sgilmore10 Apr 16, 2024
b9065bc
Update dev/release/02-source-test.rb
sgilmore10 Apr 16, 2024
3c189a0
Add newlien to end of file
sgilmore10 Apr 16, 2024
2e68629
Add missing )
sgilmore10 Apr 16, 2024
2a38f59
Fix expand_path call
sgilmore10 Apr 16, 2024
73b18b9
Add tarball_script variable
sgilmore10 Apr 16, 2024
a142383
Initialize SOURCE_DOWNLOAD variable
sgilmore10 Apr 16, 2024
844d6b2
Add step to download release candidate artifacts in release workflow
sgilmore10 Apr 16, 2024
62168c7
Add newline to end of file
sgilmore10 Apr 16, 2024
269642d
Add script to sign and upload matlab artifacts to release candidate
sgilmore10 Apr 16, 2024
94e128a
Add newline to end of file
sgilmore10 Apr 16, 2024
0c8db09
Rename 07-matlab-upload.sh to 08-matlab-upload.sh
sgilmore10 Apr 16, 2024
f2ce0df
Make 08-matlab-upload executable
sgilmore10 Apr 16, 2024
d89cf5a
Add tag variable
sgilmore10 Apr 16, 2024
3f5553f
1. Make logic extracting the MAJOR.MINOR.PATCH version string more
sgilmore10 Apr 16, 2024
79538df
Use RELEASE_CANDIDATE_TAG_NAME variable
sgilmore10 Apr 16, 2024
eda00f9
Update .github/workflows/release.yml
sgilmore10 Apr 17, 2024
f8bccff
Update matlab/tools/packageMatlabInterface.m
sgilmore10 Apr 17, 2024
7fe0196
Escape dot in regex
sgilmore10 Apr 17, 2024
7c0e74c
Move SOURCE_DOWLOAD variable definition betwee SOURCE_DEFAULT and SOU…
sgilmore10 Apr 17, 2024
984d1a0
1. Renamed 08-matlab-upload.sh to 07-matlab-upload.sh.
sgilmore10 Apr 17, 2024
820d108
Update release documentaion
sgilmore10 Apr 17, 2024
abdb243
Do not set GH_TOKEN env variable in RUn Release Test step
sgilmore10 May 17, 2024
857d694
Remove step checking out arrow
sgilmore10 May 17, 2024
58b1609
Add comment to release documentation warning users to not run 02-sour…
sgilmore10 May 17, 2024
ca71d39
Remove trailing whitespace. Add newline at end of file
sgilmore10 May 17, 2024
1ba9583
Add --repo flag to gh commands
sgilmore10 May 17, 2024
7469a1e
Update .github/workflows/release_candidate.yml
sgilmore10 May 20, 2024
e7735dd
Bump post-* scripts numbers
sgilmore10 May 20, 2024
29046f4
Make post-01-tag.sh executable
sgilmore10 May 20, 2024
0d04322
Add script to watch gh workflows
sgilmore10 May 20, 2024
3f718f9
Add stencil script for for updating release notes
sgilmore10 May 20, 2024
1955ba0
Update repo to apache/arrow
sgilmore10 May 20, 2024
aadb889
Implement post-05-update-release-notes.sh
sgilmore10 May 20, 2024
7dbcaf5
reorder variable definitions
sgilmore10 May 20, 2024
619d704
Fix post-* numbering
sgilmore10 May 20, 2024
f454239
Update release documentation for msys2
sgilmore10 May 20, 2024
e159cc8
Added logic to 02-source.sh to wait for the gh workflow that generates
sgilmore10 May 20, 2024
ae82f13
Add step to documentation about updating release notes for the GitHu…
sgilmore10 May 20, 2024
b2dc805
Remove step creating release notes url in release workflow
sgilmore10 May 20, 2024
53bf1ca
Rename dev/release/post-05-update-release-notes.sh to dev/release/pos…
sgilmore10 May 20, 2024
9afa284
delete trailing whitespace
sgilmore10 May 20, 2024
b0a825d
update release documentation
sgilmore10 May 20, 2024
8d063c7
Fix syntax errors in post-05-update-gh-release-notes.sh
sgilmore10 May 20, 2024
1826874
Upload signed tarballs to GitHub Release
sgilmore10 Jun 6, 2024
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
74 changes: 74 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: Release

on:
push:
tags:
# Trigger workflow when a tag whose name matches the pattern
# pattern "apache-arrow-{MAJOR}.{MINOR}.{PATCH}" is pushed.
- "apache-arrow-[0-9]+.[0-9]+.[0-9]+"

permissions:
contents: write

env:
GH_TOKEN: ${{ github.token }}
sgilmore10 marked this conversation as resolved.
Show resolved Hide resolved

jobs:
publish:
sgilmore10 marked this conversation as resolved.
Show resolved Hide resolved
name: Publish
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Get Tag Name of Latest Release Candidate
run: |
rc_tag=$(gh release list --repo apache/arrow | \
cut -f3 | \
grep -F "${GITHUB_REF_NAME}-rc" | \
head -n1)
echo "Latest Release Candidate Tag: ${rc_tag}"
echo "RELEASE_CANDIDATE_TAG_NAME=${rc_tag}" >> ${GITHUB_ENV}
- name: Store Version and Release Candidate Number
run: |
version_with_rc=${RELEASE_CANDIDATE_TAG_NAME#apache-arrow-}
version=${version_with_rc%-rc*}
rc_num=${version_with_rc#${version}-rc}
echo "VERSION_WITH_RC=${version_with_rc}" >> ${GITHUB_ENV}
echo "VERSION=${version}" >> ${GITHUB_ENV}
echo "RC_NUM=${rc_num}" >> ${GITHUB_ENV}
- name: Download Release Candidate Artifacts
run: |
mkdir release_candidate_artifacts
gh release download ${RELEASE_CANDIDATE_TAG_NAME} --repo apache/arrow --dir release_candidate_artifacts
- name: Create Release Title
run: |
title="Apache Arrow ${VERSION}"
echo "RELEASE_TITLE=${title}" >> ${GITHUB_ENV}
# Set the release notes to "TODO" temporarily. After the release notes page
# (https://arrow.apache.org/release/{VERSION}.html) is published, use
# gh release edit to update the release notes to refer to the newly
# pushed web page. See dev/post/post-05-update-gh-release-notes.sh
- name: Create GitHub Release
run: |
gh release create ${GITHUB_REF_NAME} \
--repo apache/arrow \
--verify-tag \
--title "${RELEASE_TITLE}" \
--notes "TODO" \
release_candidate_artifacts/*
70 changes: 70 additions & 0 deletions .github/workflows/release_candidate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: Release

on:
push:
tags:
# Trigger workflow when a tag whose name matches the pattern
# "apache-arrow-{MAJOR}.{MINOR}.{PATCH}-rc{RC_NUM}" is pushed.
- "apache-arrow-[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"

permissions:
contents: write

env:
GH_TOKEN: ${{ github.token }}
sgilmore10 marked this conversation as resolved.
Show resolved Hide resolved

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Arrow
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Store Version and Release Candidate Number
run: |
version_with_rc=${GITHUB_REF_NAME#apache-arrow-}
version=${version_with_rc%-rc*}
rc_num=${version_with_rc#${version}-rc}
echo "VERSION_WITH_RC=${version_with_rc}" >> ${GITHUB_ENV}
echo "VERSION=${version}" >> ${GITHUB_ENV}
echo "RC_NUM=${rc_num}" >> ${GITHUB_ENV}
- name: Create Release Candidate Title
run: |
title="Apache Arrow ${VERSION} RC${RC_NUM}"
echo "RELEASE_CANDIDATE_TITLE=${title}" >> ${GITHUB_ENV}
- name: Create Release Candidate Notes
run: |
release_notes="Release Candidate: ${VERSION} RC${RC_NUM}"
echo "RELEASE_CANDIDATE_NOTES=${release_notes}" >> ${GITHUB_ENV}
- name: Create Release tarball
run: |
cd dev/release/ && ./utils-create-release-tarball.sh ${VERSION} ${RC_NUM}
echo "RELEASE_TARBALL=apache-arrow-${VERSION}.tar.gz" >> ${GITHUB_ENV}
- name: Create GitHub Release
run: |
gh release create ${GITHUB_REF_NAME} \
--verify-tag \
--prerelease \
--title "${RELEASE_CANDIDATE_TITLE}" \
--notes "Release Notes: ${RELEASE_CANDIDATE_NOTES}" \
dev/release/${RELEASE_TARBALL}
12 changes: 6 additions & 6 deletions dev/release/01-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ next_version=$2
next_version_snapshot="${next_version}-SNAPSHOT"
rc_number=$3

release_tag="apache-arrow-${version}"
release_candidate_tag="apache-arrow-${version}-rc${rc_number}"
release_branch="release-${version}"
release_candidate_branch="release-${version}-rc${rc_number}"

Expand All @@ -46,9 +46,9 @@ release_candidate_branch="release-${version}-rc${rc_number}"
: ${PREPARE_TAG:=${PREPARE_DEFAULT}}

if [ ${PREPARE_TAG} -gt 0 ]; then
if [ $(git tag -l "${release_tag}") ]; then
echo "Delete existing git tag $release_tag"
git tag -d "${release_tag}"
if [ $(git tag -l "${release_candidate_tag}") ]; then
echo "Delete existing git tag $release_candidate_tag"
git tag -d "${release_candidate_tag}"
fi
fi

Expand Down Expand Up @@ -88,7 +88,7 @@ if [ ${PREPARE_LINUX_PACKAGES} -gt 0 ]; then
fi

if [ ${PREPARE_VERSION_PRE_TAG} -gt 0 ]; then
echo "Prepare release ${version} on tag ${release_tag} then reset to version ${next_version_snapshot}"
echo "Prepare release ${version} on tag ${release_candidate_tag} then reset to version ${next_version_snapshot}"

update_versions "${version}" "${next_version}" "release"
git commit -m "MINOR: [Release] Update versions for ${version}"
Expand All @@ -97,5 +97,5 @@ fi
############################## Tag the Release ##############################

if [ ${PREPARE_TAG} -gt 0 ]; then
git tag -a "${release_tag}" -m "[Release] Apache Arrow Release ${version}"
git tag -a "${release_candidate_tag}" -m "[Release] Apache Arrow Release ${version} RC${rc_number}"
fi
7 changes: 5 additions & 2 deletions dev/release/02-source-test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ class SourceTest < Test::Unit::TestCase
def setup
@current_commit = git_current_commit
detect_versions
@tag_name = "apache-arrow-#{@release_version}"
@tag_name = "apache-arrow-#{@release_version}-rc0"
@archive_name = "apache-arrow-#{@release_version}.tar.gz"
@script = File.expand_path("dev/release/02-source.sh")
@tarball_script = File.expand_path("dev/release/utils-create-release-tarball.sh")

Dir.mktmpdir do |dir|
Dir.chdir(dir) do
Expand All @@ -40,8 +42,9 @@ def source(*targets)
targets.each do |target|
env["SOURCE_#{target}"] = "1"
end
sh(env, @tarball_script, @release_version, "0")
output = sh(env, @script, @release_version, "0")
sgilmore10 marked this conversation as resolved.
Show resolved Hide resolved
sh("tar", "xf", "#{@tag_name}.tar.gz")
sh("tar", "xf", @archive_name)
output
end

Expand Down
59 changes: 23 additions & 36 deletions dev/release/02-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
set -eu

: ${SOURCE_DEFAULT:=1}
: ${SOURCE_DOWNLOAD:=${SOURCE_DEFAULT}}
: ${SOURCE_RAT:=${SOURCE_DEFAULT}}
: ${SOURCE_UPLOAD:=${SOURCE_DEFAULT}}
: ${SOURCE_PR:=${SOURCE_DEFAULT}}
Expand All @@ -37,11 +38,10 @@ fi
version=$1
rc=$2

tag=apache-arrow-${version}
tag=apache-arrow-${version}-rc${rc}
sgilmore10 marked this conversation as resolved.
Show resolved Hide resolved
maint_branch=maint-${version}
rc_branch="release-${version}-rc${rc}"
tagrc=${tag}-rc${rc}
rc_url="https://dist.apache.org/repos/dist/dev/arrow/${tagrc}"
rc_url="https://dist.apache.org/repos/dist/dev/arrow/${tag}"

echo "Preparing source for tag ${tag}"

Expand All @@ -56,35 +56,19 @@ fi

echo "Using commit $release_hash"

tarball=${tag}.tar.gz

rm -rf ${tag}
# be conservative and use the release hash, even though git produces the same
# archive (identical hashes) using the scm tag
(cd "${SOURCE_TOP_DIR}" && \
git archive ${release_hash} --prefix ${tag}/) | \
tar xf -

# Resolve all hard and symbolic links.
# If we change this, we must change ArrowSources.archive in
# dev/archery/archery/utils/source.py too.
rm -rf ${tag}.tmp
mv ${tag} ${tag}.tmp
cp -R -L ${tag}.tmp ${tag}
rm -rf ${tag}.tmp

# Create a dummy .git/ directory to download the source files from GitHub with Source Link in C#.
dummy_git=${tag}/csharp/dummy.git
mkdir ${dummy_git}
pushd ${dummy_git}
echo ${release_hash} > HEAD
echo '[remote "origin"] url = https://github.com/apache/arrow.git' >> config
mkdir objects refs
popd

# Create new tarball from modified source directory
tar czf ${tarball} ${tag}
rm -rf ${tag}
tarball=apache-arrow-${version}.tar.gz

if [ ${SOURCE_DOWNLOAD} -gt 0 ]; then
# Wait for the release candidate workflow to finish before attempting
# to download the tarball from the GitHub Release.
. $SOURCE_DIR/utils-watch-gh-workflow.sh ${tag} "release_candidate.yml"
rm -f ${tarball}
gh release download \
${tag} \
--repo apache/arrow \
--dir . \
--pattern "${tarball}"
fi

if [ ${SOURCE_RAT} -gt 0 ]; then
"${SOURCE_DIR}/run-rat.sh" ${tarball}
Expand All @@ -105,18 +89,21 @@ if [ ${SOURCE_UPLOAD} -gt 0 ]; then
${sha256_generate} $tarball > ${tarball}.sha256
${sha512_generate} $tarball > ${tarball}.sha512

# Upload signed tarballs to GitHub Release
gh release upload ${tag} ${tarball}.sha256 ${tarball}.sha512

# check out the arrow RC folder
svn co --depth=empty https://dist.apache.org/repos/dist/dev/arrow tmp

# add the release candidate for the tag
mkdir -p tmp/${tagrc}
mkdir -p tmp/${tag}

# copy the rc tarball into the tmp dir
cp ${tarball}* tmp/${tagrc}
cp ${tarball}* tmp/${tag}

# commit to svn
svn add tmp/${tagrc}
svn ci -m "Apache Arrow ${version} RC${rc}" tmp/${tagrc}
svn add tmp/${tag}
svn ci -m "Apache Arrow ${version} RC${rc}" tmp/${tag}

# clean up
rm -rf tmp
Expand Down
2 changes: 1 addition & 1 deletion dev/release/03-binary-submit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ version=$1
rc=$2
version_with_rc="${version}-rc${rc}"
crossbow_job_prefix="release-${version_with_rc}"
release_tag="apache-arrow-${version}"
release_tag="apache-arrow-${version}-rc${rc}"
rc_branch="release-${version_with_rc}"

: ${ARROW_REPOSITORY:="apache/arrow"}
Expand Down
Loading
Loading