Skip to content

Build of mopper conda package for new release #5

Build of mopper conda package for new release

Build of mopper conda package for new release #5

name: Build of mopper conda package for new release
# Controls when the action will run.
on:
release:
types: ['released', 'prereleased']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
conda_deployment_with_new_tag:
name: Test conda deployment of package with Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Conda environment creation and activation
uses: conda-incubator/[email protected]
with:
python-version: ${{ matrix.python-version }}
activate-environment: mopper_env
environment-file: conda/environment.yaml # Path to the build conda environment
show-channel-urls: true #
- name: Build but do not upload the conda packages
uses: uibcdf/[email protected]
with:
meta_yaml_dir: conda
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
user: coecms
label: auto
upload: true
token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret