Skip to content

test conda

test conda #38

Workflow file for this run

name: deploy-conda
on:
push:
branches:
- main
release:
types:
- published
jobs:
build_conda:
runs-on: ubuntu-latest
name: Publish to Conda
strategy:
fail-fast: false
# To upload to PyPI on every tag starting with 'v', use the following:
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# To publish to pypi on each GitHub Release, use the following:
# if: github.event_name == 'release' && github.event.action == 'published'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
auto-update-conda: true
- name: Build and upload package
shell: bash -el {0}
run: |
conda install -y conda-build anaconda-client
conda config --set anaconda_upload yes
export PATH=$(conda info --root):$PATH
export PATH=$(conda info --root)/bin:$PATH
conda build --output-folder conda-bld .
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}