def create_release(config, args):
  """
  Create a new release.
  """
  yield config.repo.create_release(args.tag_name, name=args.name,
                                   target_commitish=args.get("target_commitish"), body=args.get("body"),
                                   draft=args.get_bool("draft"), prerelease=args.get_bool("prerelease"))