Skip to content

Commit

Permalink
Fix site release script (hopefully) (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol authored Dec 20, 2020
1 parent ae5ca75 commit d146d21
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/releaseSite.sc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def main(): Unit = {

if(sys.env.get("GITHUB_DEPLOY_KEY").nonEmpty) doInstallSSH()

if (!os.exists(os.pwd / "modules" / "docs" / "target" / "mdoc"))
if (!os.exists(os.pwd / "modules" / "docs" / "target" / "jvm-2.13" / "mdoc"))
sys.error("Have you run mdoc ?")

val website = os.pwd / "website"
Expand Down Expand Up @@ -156,14 +156,10 @@ val installSSHScript: String =
|fi
""".stripMargin

@main
def doInstallSSH() = {
val tmp = os.temp(contents = installSSHScript,
prefix = "docusaurus",
suffix = "install_ssh.sh",
perms = Set(OWNER_EXECUTE).asJava)
os.proc(tmp).call(cwd = os.pwd)
}



0 comments on commit d146d21

Please sign in to comment.