UNPKG

1.28 kBTypeScriptView Raw
1/// <reference types="node" />
2import { Arch } from "builder-util";
3import { GithubOptions } from "builder-util-runtime";
4import { ClientRequest } from "http";
5import { Lazy } from "lazy-val";
6import { HttpPublisher, PublishContext, PublishOptions } from "./publisher";
7export interface Release {
8 id: number;
9 tag_name: string;
10 draft: boolean;
11 prerelease: boolean;
12 published_at: string;
13 upload_url: string;
14}
15export declare class GitHubPublisher extends HttpPublisher {
16 private readonly info;
17 private readonly version;
18 private readonly options;
19 private readonly tag;
20 readonly _release: Lazy<any>;
21 private readonly token;
22 readonly providerName = "github";
23 private readonly releaseType;
24 private releaseLogFields;
25 constructor(context: PublishContext, info: GithubOptions, version: string, options?: PublishOptions);
26 private getOrCreateRelease;
27 private overwriteArtifact;
28 protected doUpload(fileName: string, arch: Arch, dataLength: number, requestProcessor: (request: ClientRequest, reject: (error: Error) => void) => void): Promise<any>;
29 private doUploadFile;
30 private createRelease;
31 getRelease(): Promise<any>;
32 deleteRelease(): Promise<any>;
33 private githubRequest;
34 toString(): string;
35}