Liking cljdoc? Tell your friends :D

action-deploy-clojars

GitHub Action to deploy Clojure libraries to Clojars.

When invoked, the action will compile a JAR file that will be deployed to Clojars. The JAR will also be stored as a workflow artifact. The following demonstrates a call to this action with all required inputs:

    steps:
      - name: Setup environment # You will need to call this action first
        uses: yetanalytics/action-setup-env@<tag>

      - name: Deploy to clojars
        uses: yetanalytics/action-deploy-clojars@<tag>
        with:
          artifact-id: 'my-library'
          version: '0.1.0'
          clojars-username: ${{ secrets.CLOJARS_USERNAME }}
          clojars-deploy-token: ${{ secrets.CLOJARS_DEPLOY_TOKEN }}

The following is a table of all inputs:

NameDescription
artifact-idThe Clojars Artifact ID (i.e. the name of the lib itself). Required
versionThe version string. (By Clojars convention, you should remove any prefixes, e.g. the v in v0.1.0.) Required
clojars-usernameThe Clojars username (should be a GitHub secret). Required
clojars-deploy-tokenThe Clojars deploy token (should be a GitHub secret). Required
group-idThe Clojars Group ID. Defaults to 'com.yetanalytics'.
src-dirsA quoted array of the source directories. Defaults to '["src/main"]'.
resource-dirsA quoted array of the resource directories. Defaults to '["resources"]'. Pass '[]' if no resource directories exist.
publishWhether or not to actually publish to Clojars. Default true; turn off for debugging.

Can you improve this documentation? These fine people already did:
kelvinqian00 & Kelvin
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close