Skip to content

Commit d450101

Browse files
TariqAymangithub-actions[bot]
authored andcommitted
Build Action ad340d8
1 parent ad340d8 commit d450101

File tree

9 files changed

+69
-4
lines changed

9 files changed

+69
-4
lines changed

dist/index.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
declare function deploy(): Promise<void>;
2-
export { deploy };
1+
export {};

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/services/ConfigManager.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Inputs, ConnectionOptions } from '../types';
2+
export declare class ConfigManager {
3+
constructor();
4+
getInputs(): Inputs;
5+
getConnectionOptions(): ConnectionOptions;
6+
getTarget(): string;
7+
getSha(): string;
8+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { ConfigManager } from './ConfigManager';
2+
export declare class DeploymentService {
3+
private config;
4+
private paths;
5+
private deployDate;
6+
constructor(config: ConfigManager);
7+
deploy(): Promise<void>;
8+
private checkSponsorship;
9+
private handleSponsorshipError;
10+
private prepareDeployment;
11+
private checkAndPrepareFolders;
12+
private cloneAndPrepareRepository;
13+
private syncEnvironmentFile;
14+
private linkStorage;
15+
private runOptionalScript;
16+
private activateRelease;
17+
private getPaths;
18+
}

dist/types.d.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
export interface Inputs {
2+
target: string;
3+
sha: string;
4+
deploy_branch: string;
5+
envFile?: string;
6+
commandScriptBeforeCheckFolders?: string;
7+
commandScriptAfterCheckFolders?: string;
8+
commandScriptBeforeDownload?: string;
9+
commandScriptAfterDownload?: string;
10+
commandScriptBeforeActivate?: string;
11+
commandScriptAfterActivate?: string;
12+
githubRepoOwner: string;
13+
githubRepo: string;
14+
}
15+
export interface Paths {
16+
target: string;
17+
sha: string;
18+
releasePath: string;
19+
activeReleasePath: string;
20+
}
21+
export interface ConnectionOptions {
22+
host: string;
23+
username: string;
24+
port?: number | 22;
25+
password?: string;
26+
privateKey?: string;
27+
passphrase?: string;
28+
}

dist/utils/log.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { ConnectionOptions, Inputs } from '../types';
2+
export declare function log(message: string): void;
3+
export declare function logInputs(inputs: Inputs, connectionOptions: ConnectionOptions): void;

dist/utils/sshUtils.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { ConnectionOptions, Paths } from '../types';
2+
export declare const sshOperations: {
3+
connect({ host, username, port, password, privateKey, passphrase }: ConnectionOptions): Promise<void>;
4+
execute(command: string, paths: Paths, showCommandLog?: boolean): Promise<void>;
5+
dispose(): void;
6+
};

dist/utils/validation.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { ConnectionOptions, Inputs } from '../types';
2+
export declare function validateConfig(inputs: Inputs): void;
3+
export declare function validateConnectionOptions(connectionOptions: ConnectionOptions): void;

0 commit comments

Comments
 (0)