Skip to content

Commit 8d6630a

Browse files
author
Oliver Borchert
authored
Do Not Delete Original Repository (#5)
* Do not delete original repo * Update main.js
1 parent 6384afe commit 8d6630a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

main.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,19 @@ const getDocumentationFolder = () => {
8383
const generateAndDeploy = () => {
8484
shell.exec(generateJazzyInstallCommand())
8585
shell.exec(generateJazzyArguments())
86-
shell.cp("-r", `${getDocumentationFolder()}/*`, "../")
86+
shell.exec("mkdir ../.docs")
87+
shell.cp("-r", `${getDocumentationFolder()}/*`, "../.docs/")
8788

88-
shell.cd("../")
89-
shell.rm("-rf", `${process.env.GITHUB_WORKSPACE}`)
89+
shell.cd("../.docs")
9090

9191
shell.exec("git init")
9292
shell.exec(`git config user.name ${context.actor}`)
9393
shell.exec(`git config user.email ${context.actor}@users.noreply.github.com`)
9494
shell.exec("git add .")
9595
shell.exec("git commit -m 'Deploying Updated Jazzy Docs'")
9696
shell.exec(`git push --force ${remote} master:${branch}`)
97+
98+
shell.cd(process.env.GITHUB_WORKSPACE)
9799
}
98100

99101
try {

0 commit comments

Comments
 (0)