A Github Action to publish your software package to an Anaconda repository.
name: publish_conda
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: publish-to-conda
uses: EtienneCmb/[email protected]
with:
subdir: 'conda'
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
.
├── LICENSE
├── README.md
├── setup.py
├── myproject
│ ├── __init__.py
│ └── myproject.py
├── conda
│ ├── conda_build_config.yaml
│ └── 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
- conda-forge