mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Excluding .github
This commit is contained in:
parent
7d856e3328
commit
d37a7f4538
@ -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
5516
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user