Skip to main content

Custom Publishers

Run arbitrary commands on release artifacts

Custom publishers let you run any command on your release artifacts, enabling integration with tools and registries that anodizer doesn't natively support.

Minimal config

publishers:
  - name: my-publisher
    cmd: ./scripts/publish.sh
    args: ["{{ ArtifactPath }}", "{{ Version }}"]

Publisher config fields

FieldTypeDefaultDescription
namestringPublisher name (for logging)
cmdstringCommand to execute
argslistnoneArguments (templates supported)
idslistnoneOnly run on artifacts matching these IDs
artifact_typeslistnoneFilter by type: binary, archive, checksum, package
envmapnoneAdditional environment variables

Filtering artifacts

publishers:
  - name: upload-binaries
    cmd: ./scripts/upload.sh
    artifact_types: [binary]
    args: ["{{ ArtifactPath }}"]