Change GitArchiver to use the new requestAsset event

This commit is contained in:
Edwin Jakobs
2021-08-28 00:05:42 +02:00
parent bf4b016039
commit 7640246627
4 changed files with 71 additions and 22 deletions

View File

@@ -1,11 +1,17 @@
import org.openrndr.applicationSynchronous
import org.openrndr.extensions.Screenshots
import org.openrndr.extensions.SingleScreenshot
fun main() = applicationSynchronous {
program {
if (System.getProperty("takeScreenshot") == "true") {
extend(SingleScreenshot()) {
this.outputFile = System.getProperty("screenshotPath")
}
}
val ga = extend(GitArchiver()) {
commitOnRun = false
commitOnProduceAssets = false
commitOnRun = true
commitOnRequestAssets = false
}
extend(Screenshots())
extend {