This is a Clojure lib that provides functions to interact with the Github API from a MonkeyCI build.
In your .monkeyci
directory, add the dependency to your deps.edn
:
{:deps {com.monkeyci/plugin-github {:mvn/version "0.1.0-SNAPSHOT"}}}
Then, in your build.clj
, require the namespace, and then you can add one
of the provided build jobs:
(require '[monkey.ci.plugin.github :as gh])
The jobs currently provided are these:
Creates a release according to the current build settings. This job will only be executed if the build is triggered from a tag. It will use the tag name as release name, formatted using the configured format string.
;; Job that will create a release in Github for the commit tag,
;; formatting the tag by prefixing it with a `v`.
(gh/release-job {:format-name "v%s"})
This job in turn invokes the create-release!
function in Github. This call
requires some sort of authentication to the Github API, for which it will
automatically fetch the github-token
build parameter, or you can provide your
own :token
in the job configuration. If no token is provided, the job will
fail.
The jobs usually run inside the build script itself, so they don't need to start a new container, and are very fast.
Copyright (c) 2024 by Monkey Projects
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close