Skip to content

Commit

Permalink
build: upload notebooks to storage on every build (#2001)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhamilton723 authored Jun 28, 2023
1 parent 7cb018a commit 63491dd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,13 @@ publishBadges := {
uploadBadge("master version", version.value, "blue", "master_version3.svg")
}

val uploadNotebooks = TaskKey[Unit]("uploadNotebooks", "upload notebooks to blob storage")
uploadNotebooks := {
val localNotebooksFolder = join(baseDirectory.value.toString, "notebooks").toString
val blobNotebooksFolder = version.value
uploadToBlob(localNotebooksFolder, blobNotebooksFolder, "notebooks")
}

val settings = Seq(
Test / scalastyleConfig := (ThisBuild / baseDirectory).value / "scalastyle-test-config.xml",
Test / logBuffered := false,
Expand Down Expand Up @@ -486,7 +493,8 @@ setupTask := {

val convertNotebooks = TaskKey[Unit]("convertNotebooks", "convert notebooks to markdown for website display")
convertNotebooks := {
runCmdStr("python -m docs.python.documentprojection --customchannels docs/python/synapseml_channels -c website . docs/manifest.yaml -p")
runCmdStr("python -m docs.python.documentprojection " +
"--customchannels docs/python/synapseml_channels -c website . docs/manifest.yaml -p")
}

val testWebsiteDocs = TaskKey[Unit]("testWebsiteDocs",
Expand Down
2 changes: 1 addition & 1 deletion pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
sudo apt-get install graphviz doxygen -y
source activate synapseml
sbt packagePython
sbt publishBlob publishDocs publishR publishPython
sbt publishBlob publishDocs publishR publishPython uploadNotebooks
sbt publishSigned
sbt genBuildInfo
echo "##vso[task.uploadsummary]$(pwd)/target/Build.md"
Expand Down

0 comments on commit 63491dd

Please sign in to comment.