Skip to content

Publish Conda

Actions
Build and Publish Conda package to Anaconda
v1.3
Latest
Star (27)

Publish Anaconda Package

A Github Action to publish your software package to an Anaconda repository.

Example workflow to publish to conda every time you make a new release

name: publish_conda

on:
  release:
    types: [published]
    
jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: publish-to-conda
      uses: fcakyon/conda-publish-action@v1.3
      with:
        subdir: 'conda'
        anacondatoken: ${{ secrets.ANACONDA_TOKEN }}
        platforms: 'win osx linux'

Example project structure

.
├── LICENSE
├── README.md
├── setup.py
├── myproject
│   ├── __init__.py
│   └── myproject.py
├── conda
│   ├── conda_build_config.yaml
│   └── meta.yaml
├── .github
│   └── workflows
│       └── publish_conda.yml
├── .gitignore

ANACONDA_TOKEN

  1. Get an Anaconda token (with read and write API access) at anaconda.org/USERNAME/settings/access
  2. Add it to the Secrets of the Github repository as ANACONDA_TOKEN

Supported anaconda channels

  • conda-forge
  • pytorch
  • fcakyon
  • districtdatalabs

Publish Conda is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Build and Publish Conda package to Anaconda
v1.3
Latest

Publish Conda is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.