def publish( args, release, github_token, chocolatey_token, deb_file, homebrew_file, homebrew_dir, chocolatey_file, ): if args.upload_assets: if deb_file: add_assets(release, github_token, deb_file) if chocolatey_file: add_assets(release, github_token, chocolatey_file) if args.chocolatey_publish: publish_chocolatey( chocolatey_file, chocolatey_token, args.insecure_chocolatey_upload ) if homebrew_file: add_assets(release, github_token, homebrew_file) validate_tap(homebrew_dir, args.tap_repository, args.version) if args.homebrew_push_tap: publish_tap_changes(homebrew_dir, args.tap_repository, args.version) else: log_about_manual_tap_push(args.tap_repository)
def publish( args, release, github_token, chocolatey_token, deb_file, homebrew_file, homebrew_dir, chocolatey_file, ): if args.upload_assets: if deb_file: add_assets(release, github_token, deb_file) if chocolatey_file: add_assets(release, github_token, chocolatey_file) if args.chocolatey_publish: publish_chocolatey(chocolatey_file, chocolatey_token, args.insecure_chocolatey_upload) if homebrew_file: add_assets(release, github_token, homebrew_file) validate_tap(homebrew_dir, args.tap_repository, args.version) if args.homebrew_push_tap: publish_tap_changes(homebrew_dir, args.tap_repository, args.version, github_token) else: log_about_manual_tap_push(args.tap_repository)