Skip to content

Build and Publish Conda Package #4

Build and Publish Conda Package

Build and Publish Conda Package #4

Workflow file for this run

name: Build and Publish Conda Package
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: rdmc_env
environment-file: environment.yml
miniforge-variant: mambaforge
miniforge-version: latest
python-version: 3.7
auto-activate-base: true
use-mamba: true
- name: Conda info
run: |
conda info
conda list
- name: Build Conda package
env:
CONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
mamba install -y conda-build anaconda-client boa
conda config --set anaconda_upload yes
conda build --token $CONDA_TOKEN --user xiaoruidong .conda/release