This workflow is derived from here and here.
Edit the following files:
../.travis.yml
: alter env::global::PKG_NAME
and the conda channels commands in the before_install
section.
meta.yaml
: alter {% set name = "PKG_NAME" %}
, requirements::host
, requirements::run
, and the about
section.
Store both deploy_anaconda.sh::$CONDA_USER_NAME
and deploy_anaconda.sh::$CONDA_UPLOAD_TOKEN
securely in on Travis CI. These are used to authenticate the anaconda upload
command.
CONDA_UPLOAD_TOKEN
and give it the value of the API token that you copied from anaconda.org.CONDA_USER_NAME
and give it your anaconda.org user name.Or get CONDA_UPLOAD_TOKEN
from the command line:
anaconda login
anaconda auth -c -n travis \
--max-age 307584000 \
--url https://anaconda.org/${CONDA_USER_NAME}/${PKG_NAME} \
--scopes "api:write api:read"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.