def METHOD_NAME(argv):
    r = ReleaseGen(FLAGS.github_token, dry_run=FLAGS.dry_run)
    if not r.needs_release():
        log.info('Current version has already been released, nothing to be done!')
        return
    release_files = argv[1:]
    # Check we can sign the artifacts before trying to create a release.
    release_files += [r.sign_pgp(artifact) for artifact in argv[1:]]
    release_files += [r.sign_kms(artifact) for artifact in argv[1:]]
    release_files += [r.checksum(artifact) for artifact in argv[1:]]
    r.release()
    for file in release_files:
        r.upload(file)
    if FLAGS.circleci_token and not FLAGS.dry_run:
        r.trigger_build(FLAGS.circleci_token, 'thought-machine/homebrew-please')