Skip to content

Github Action to build and deploy conda package to anaconda.org

License

Notifications You must be signed in to change notification settings

janclemenslab/conda-build-publish-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: ${{ matrix.os }}
    strategy:
      fail-fast: False
      matrix:
        python-version: [3.9, '3.10']
        os: [ubuntu-latest, windows-latest, macOS-latest]
    steps:
    - uses: actions/checkout@v1
    - name: publish-to-conda
      uses: janclemenslab/conda-build-publish-action
      with:
        subDir: 'conda/das'
        AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
        AnacondaUser: ncb
        pyver: ${{ matrix.python-version }}

Example project structure

.
├── LICENSE
├── README.md
├── myproject
│   ├── __init__.py
│   └── myproject.py
├── conda
│   └── das
│       ├── build.sh
│       └── 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

Build Channels

By Default, this Github Action will search for conda build dependancies (on top of the standard channels) in conda-forge and bioconda

About

Github Action to build and deploy conda package to anaconda.org

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 50.2%
  • Dockerfile 49.8%