Skip to content

Build and upload conda packages #13

Build and upload conda packages

Build and upload conda packages #13

name: Build and upload conda packages
on:
release:
types: [ published ]
workflow_dispatch:
jobs:
conda_deployment_with_new_tag:
name: Conda deployment of package with Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
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: .conda-envs/build-env.yaml # Path to the build conda environment
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: .conda-envs
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
platform_all: true
user: atlanhq
label: main
token: ${{ secrets.ANACONDA_API_TOKEN }}
upload: true