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:
| Name | Description |
|---|---|
artifact-id | The Clojars Artifact ID (i.e. the name of the lib itself). Required |
version | The version string. (By Clojars convention, you should remove any prefixes, e.g. the v in v0.1.0.) Required |
clojars-username | The Clojars username (should be a GitHub secret). Required |
clojars-deploy-token | The Clojars deploy token (should be a GitHub secret). Required |
group-id | The Clojars Group ID. Defaults to 'com.yetanalytics'. |
src-dirs | A quoted array of the source directories. Defaults to '["src/main"]'. |
resource-dirs | A quoted array of the resource directories. Defaults to '["resources"]'. Pass '[]' if no resource directories exist. |
publish | Whether or not to actually publish to Clojars. Default true; turn off for debugging. |
Can you improve this documentation? These fine people already did:
kelvinqian00 & KelvinEdit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |