Skip to content

Trying out anaconda channel upload #10

Trying out anaconda channel upload

Trying out anaconda channel upload #10

Workflow file for this run

name: Build and upload conda packages
on:
release:
types: ['released', 'prereleased']
# lets add on PR for testing
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']
# workflow_dispatch: # Un comment line if you also want to trigger action manually
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", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- 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
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Build and upload the conda packages
uses: uibcdf/action-build-and-upload-conda-packages@v1.3.0
with:
meta_yaml_dir: devtools/conda-build
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
# platform_linux-64: true
# platform_osx-64: false
# platform_win-64: false
user: stochasticHydroTools
label: dev
overwrite: true
token: ${{ secrets.ANACONDA_TOKEN }}