Skip to content

Publish (test)

Publish (test) #1

Workflow file for this run

name: Publish to Anaconda.org (win test)
on:
release:
types:
- published
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'manual run'
jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: False
matrix:
python-version: [3.9, '3.10']
os: [windows-latest]
defaults: # https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- name: Setup miniconda # https://github.com/marketplace/actions/setup-miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
channels: conda-forge,ncb,apple,defaults
python-version: 3.12
auto-activate-base: false
activate-environment: anaconda-client-env
environment-file: build_env.yml
condarc-file: condarc.yml
- name: Build and upload to anaconda
run: |
conda mambabuild conda/das-test -c conda-forge -c ncb -c nvidia --python ${{ matrix.python-version }} --user ncb --token $ANACONDA_TOKEN
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}