setup-anaconda-cli
Provisions the Anaconda CLI and optional tools (likepixi) in your runner, so you can use them directly in subsequent workflow steps.
Usage example
Inputs
Outputs
Platform support
This action supports Linux, macOS, and Windows runners.upload-package
Uploads conda or Python packages to any Anaconda registry. Thetarget-type input determines where packages are published.
Usage examples
- Anaconda.org
- Package Security Manager
Upload a conda package to your Anaconda.org organization:Upload a Python wheel as a private package with labels:
Authentication
Theupload-package action requires an API token for the registry you’re publishing to. Generate a token for your target registry, then store it as a GitHub Actions secret in your repository or organization settings.
- Anaconda.org: Generate a token with the
api:writescope. - Package Security Manager: Generate a token with Write permissions for your target channel.
Inputs
The following inputs apply only whentarget-type is anaconda.org:
Full workflow example
This workflow builds a conda package on push to a version tag and publishes it to Anaconda.org:Migrating from existing workflows
If you’re currently using CLI commands directly in your workflows, you can replace them with theupload-package action:
- Anaconda.org
- Package Security Manager
Before:After: