Added a script for creating Github release drafts
Summary:
This script automates the manual process of creating a Github draft release.
This process is error-prone as shown in past releases where some of the following have occurred:
- Git tag pushed, but not commits (or vice versa)
- Release draft missing binaries
- Copy-paste error on release notes.
Test Plan:
github-release.sh -h github-release.sh -d # Error missing tag github-release.sh -d --tag v0.19.11 # Error missing oauth token # Create oauth-token on Github and paste the token to a file github-release.sh -d --tag v0.19.11 -o <path/to/oauth-token> # Error missing assert dir github-release.sh -d --tag v0.19.11 -o <path/to/oauth-token> -a <path/to/binaries> # Releasing on old tag doesn't blow up github-release.sh -d --tag v0.17.0 -o <path/to/oauth-token> -a <path/to/binaries> # Live test on old tag github-release.sh --tag v0.17.0 -o <path/to/oauth-token> -a <path/to/binaries> # Creates draft as expected
TBA live test in the next release
Reviewers: #bitcoin_abc, deadalnix, Fabien
Reviewed By: #bitcoin_abc, Fabien
Subscribers: Fabien
Differential Revision: https://reviews.bitcoinabc.org/D3714