Skip to content

Commit

Permalink
Build Action ad340d8
Browse files Browse the repository at this point in the history
  • Loading branch information
TariqAyman authored and github-actions[bot] committed Aug 27, 2024
1 parent ad340d8 commit d450101
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
declare function deploy(): Promise<void>;
export { deploy };
export {};
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/services/ConfigManager.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Inputs, ConnectionOptions } from '../types';
export declare class ConfigManager {
constructor();
getInputs(): Inputs;
getConnectionOptions(): ConnectionOptions;
getTarget(): string;
getSha(): string;
}
18 changes: 18 additions & 0 deletions dist/services/DeploymentService.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { ConfigManager } from './ConfigManager';
export declare class DeploymentService {
private config;
private paths;
private deployDate;
constructor(config: ConfigManager);
deploy(): Promise<void>;
private checkSponsorship;
private handleSponsorshipError;
private prepareDeployment;
private checkAndPrepareFolders;
private cloneAndPrepareRepository;
private syncEnvironmentFile;
private linkStorage;
private runOptionalScript;
private activateRelease;
private getPaths;
}
28 changes: 28 additions & 0 deletions dist/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
export interface Inputs {
target: string;
sha: string;
deploy_branch: string;
envFile?: string;
commandScriptBeforeCheckFolders?: string;
commandScriptAfterCheckFolders?: string;
commandScriptBeforeDownload?: string;
commandScriptAfterDownload?: string;
commandScriptBeforeActivate?: string;
commandScriptAfterActivate?: string;
githubRepoOwner: string;
githubRepo: string;
}
export interface Paths {
target: string;
sha: string;
releasePath: string;
activeReleasePath: string;
}
export interface ConnectionOptions {
host: string;
username: string;
port?: number | 22;
password?: string;
privateKey?: string;
passphrase?: string;
}
3 changes: 3 additions & 0 deletions dist/utils/log.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { ConnectionOptions, Inputs } from '../types';
export declare function log(message: string): void;
export declare function logInputs(inputs: Inputs, connectionOptions: ConnectionOptions): void;
6 changes: 6 additions & 0 deletions dist/utils/sshUtils.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ConnectionOptions, Paths } from '../types';
export declare const sshOperations: {
connect({ host, username, port, password, privateKey, passphrase }: ConnectionOptions): Promise<void>;
execute(command: string, paths: Paths, showCommandLog?: boolean): Promise<void>;
dispose(): void;
};
3 changes: 3 additions & 0 deletions dist/utils/validation.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { ConnectionOptions, Inputs } from '../types';
export declare function validateConfig(inputs: Inputs): void;
export declare function validateConnectionOptions(connectionOptions: ConnectionOptions): void;

0 comments on commit d450101

Please sign in to comment.