A Github Action to publish your software package to an Anaconda repository.
This action was forked in order use conda convert. Parent repo has since updated.
This was then used in hemberg-lab/sc3c repo for automated publishing.
name: publish_conda
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: publish-to-conda
uses: maxibor/[email protected]
with:
subDir: 'conda'
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
.
├── LICENSE
├── README.md
├── myproject
│ ├── __init__.py
│ └── myproject.py
├── conda
│ ├── build.sh
│ └── meta.yaml
├── .github
│ └── workflows
│ └── publish_conda.yml
├── .gitignore
- Get an Anaconda token (with read and write API access) at
anaconda.org/USERNAME/settings/access
- Add it to the Secrets of the Github repository as
ANACONDA_TOKEN
By Default, this Github Action will search for conda build dependancies (on top of the standard channels) in conda-forge
and bioconda