diff --git a/.github/workflows/rc.yml b/.github/workflows/rc.yml index 5a407d8..ff0bf9f 100644 --- a/.github/workflows/rc.yml +++ b/.github/workflows/rc.yml @@ -55,7 +55,7 @@ jobs: echo "RC=${rc}" >> ${GITHUB_ENV} - name: Archive run: | - id="apache-iceberg-go-${VERSION}" + id="apache-iceberg-go-${VERSION}-rc${RC}" tar_gz="${id}.tar.gz" echo "TAR_GZ=${tar_gz}" >> ${GITHUB_ENV} git archive HEAD --prefix "${id}/" --output "${tar_gz}" @@ -91,6 +91,7 @@ jobs: run: | tar_gz=$(echo apache-iceberg-go-*.tar.gz) version=${tar_gz#apache-iceberg-go-} + version=${version%-rc*} version=${version%.tar.gz} if [ "${GITHUB_REF_TYPE}" = "tag" ]; then rc="${GITHUB_REF_NAME#*-rc}" diff --git a/dev/release/verify_rc.sh b/dev/release/verify_rc.sh index 6177fe8..c653698 100755 --- a/dev/release/verify_rc.sh +++ b/dev/release/verify_rc.sh @@ -36,7 +36,7 @@ RC="$2" ICEBERG_DIST_BASE_URL="https://downloads.apache.org/iceberg" DOWNLOAD_RC_BASE_URL="https://github.com/apache/iceberg-go/releases/download/v${VERSION}-rc${RC}" -ARCHIVE_BASE_NAME="apache-iceberg-go-${VERSION}" +ARCHIVE_BASE_NAME="apache-iceberg-go-${VERSION}-rc${RC}" : "${VERIFY_DEFAULT:=1}" : "${VERIFY_DOWNLOAD:=${VERIFY_DEFAULT}}"