Excluding .github

This commit is contained in:
James Ives 2019-11-10 17:01:54 -05:00
parent 7d856e3328
commit d37a7f4538
3 changed files with 2 additions and 5518 deletions

View File

@ -94,7 +94,7 @@ function deploy() {
Allows the user to specify the root if '.' is provided. */ Allows the user to specify the root if '.' is provided. */
if (constants_1.action.build === constants_1.root) { if (constants_1.action.build === constants_1.root) {
// rsync is executed here so the .git and temporary deployment directories don't get duplicated. // rsync is executed here so the .git and temporary deployment directories don't get duplicated.
yield util_1.execute(`rsync -q -av --progress ${constants_1.action.build}/. ${temporaryDeploymentDirectory} --exclude .git --exclude ${temporaryDeploymentDirectory}`, constants_1.workspace); yield util_1.execute(`rsync -q -av --progress ${constants_1.action.build}/. ${temporaryDeploymentDirectory} --exclude .git --exclude .github --exclude ${temporaryDeploymentDirectory}`, constants_1.workspace);
} }
else { else {
yield io_1.cp(`${constants_1.action.build}/.`, temporaryDeploymentDirectory, { yield io_1.cp(`${constants_1.action.build}/.`, temporaryDeploymentDirectory, {

5516
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -89,7 +89,7 @@ export async function deploy(): Promise<any> {
if (action.build === root) { if (action.build === root) {
// rsync is executed here so the .git and temporary deployment directories don't get duplicated. // rsync is executed here so the .git and temporary deployment directories don't get duplicated.
await execute( await execute(
`rsync -q -av --progress ${action.build}/. ${temporaryDeploymentDirectory} --exclude .git --exclude ${temporaryDeploymentDirectory}`, `rsync -q -av --progress ${action.build}/. ${temporaryDeploymentDirectory} --exclude .git --exclude .github --exclude ${temporaryDeploymentDirectory}`,
workspace workspace
); );
} else { } else {