HomePhabricator

Added a script for creating Github release drafts

Description

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

Details

Provenance
jasonbcoxAuthored on Jul 19 2019, 00:26
jasonbcoxPushed on Sep 30 2019, 16:09
Reviewer
Restricted Project
Differential Revision
D3714: Added a script for creating Github release drafts
Parents
rABC44a1e1cd6c81: doxygen: Fix member comments
Branches
Unknown
Tags
Unknown