Repository navigation
release: improve release.sh script - #447
Conversation
kevinjqliu
left a comment
There was a problem hiding this comment.
The previous method moves the rc artifacts from apache dist/dev/ to dist/release/ as is. I think its cleaner and less error prone. Can we keep this part?
I still like the addition of pushing a new github release
| rc_tag="${tag}-rc${rc}" | ||
| echo "Tagging for release: ${tag}" | ||
| git tag "${tag}" "${rc_tag}" | ||
| git tag "${tag}" "${rc_tag}^{}" -m "Release ${tag}" |
There was a problem hiding this comment.
+1 "${rc_tag}^{}" means return the commit for this tag
| gh release download "${rc_tag}" \ | ||
| --dir "${dist_dir}" \ | ||
| --skip-existing |
There was a problem hiding this comment.
nit, i think we should download from apache instead, using dist_dev_url
The thing I don't like about that is that it doesn't rename the files to remove the |
|
okay i see what youre trying to do now.. instead of going through the hoops of renaming the files, could we just name the folder with the rc but not the files? This way we can use the This is what the python and rust releases do |
|
Ah, okay I'll try that. I'll have to change the release_rc.sh scripts to rename the files and remove the -rc before uploading them to svn. |
| gh release upload "${rc_tag}" \ | ||
| --clobber \ | ||
| --repo "${repository}" \ | ||
| "${tar_gz}".asc "${tar_gz}.sha512" |
There was a problem hiding this comment.
btw, the gh release already generates the sha512 file.
gh release download v0.3.0-rc0 --repo apache/iceberg-go
downloads
- apache-iceberg-go-0.3.0-rc0.tar.gz
- apache-iceberg-go-0.3.0-rc0.tar.gz.sha512
Improving the release.sh script to do things properly: