mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Debugging
This commit is contained in:
parent
44a73794b6
commit
4ac9138a70
@ -84,9 +84,11 @@ function deploy() {
|
||||
console.log("Deployment branch does not exist. Creating....");
|
||||
yield generateBranch();
|
||||
}
|
||||
yield util_1.execute(`git switch -t origin/${constants_1.action.baseBranch}`, constants_1.action.build);
|
||||
console.log('list', yield util_1.execute(`ls`, constants_1.action.build));
|
||||
yield util_1.execute(`git add .`, constants_1.action.build);
|
||||
yield util_1.execute(`git checkout --orphan ${constants_1.repositoryPath}`, constants_1.action.branch);
|
||||
yield util_1.execute(`git remote rm origin`, constants_1.action.build);
|
||||
yield util_1.execute(`git remote add origin ${constants_1.repositoryPath}`, constants_1.action.build);
|
||||
yield util_1.execute(`git add --all`, constants_1.action.build);
|
||||
yield util_1.execute(`git commit -m "Deploying to ${constants_1.action.branch} from ${constants_1.action.baseBranch} ${process.env.GITHUB_SHA}" --quiet`, constants_1.action.build);
|
||||
yield util_1.execute(`git push --force ${constants_1.repositoryPath} ${constants_1.action.baseBranch}:${constants_1.action.branch}`, constants_1.action.build);
|
||||
/*
|
||||
|
@ -73,11 +73,14 @@ export async function deploy(): Promise<any> {
|
||||
await generateBranch();
|
||||
}
|
||||
|
||||
await execute(`git switch -t origin/${action.baseBranch}`, action.build)
|
||||
|
||||
console.log('list', await execute(`ls`, action.build))
|
||||
|
||||
await execute(`git add .`, action.build);
|
||||
await execute(`git checkout --orphan ${repositoryPath}`, action.branch)
|
||||
await execute(`git remote rm origin`, action.build)
|
||||
await execute(`git remote add origin ${repositoryPath}`, action.build)
|
||||
|
||||
await execute(`git add --all`, action.build);
|
||||
await execute(
|
||||
`git commit -m "Deploying to ${action.branch} from ${action.baseBranch} ${process.env.GITHUB_SHA}" --quiet`,
|
||||
action.build
|
||||
|
Loading…
Reference in New Issue
Block a user