Skip to content

Build and upload conda package #1

Build and upload conda package

Build and upload conda package #1

name: Build and upload conda package
on:
release:
types: []
jobs:
conda_deployment_with_new_tag:
name: Conda deployment of package with ${{ matrix.os }} Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Conda environment creation and activation
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: devtools/conda-envs/build_env.yaml # Path to the build conda environment
miniconda-version: latest
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Build and upload the conda packages
uses: uibcdf/[email protected]
with:
meta_yaml_dir: devtools/conda-build
python-version: ${{ matrix.python-version }}
user: statphysbio
label: auto
token: ${{ secrets.ANACONDA_TOKEN }}