Skip to content

Instantly share code, notes, and snippets.

@krzema12
Created November 20, 2022 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krzema12/1be7be50c1f6fd0465f98f61c303c44e to your computer and use it in GitHub Desktop.
Save krzema12/1be7be50c1f6fd0465f98f61c303c44e to your computer and use it in GitHub Desktop.
#!/usr/bin/env kotlin
@file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.31.0")
// imports...
workflow(
name = "Build",
on = listOf(Push(branches = listOf("main"))),
sourceFile = __FILE__.toPath(),
) {
job(
id = "build",
runsOn = UbuntuLatest,
) {
uses(CheckoutV3())
uses(GradleBuildActionV2(arguments = "build"))
}
}.writeToFile()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment