Version 1.1.0 #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Deploy conda package with Python ${{ matrix.python-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
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 | |
channels: conda-forge, coecms | |
channel-priority: true | |
environment-file: conda/environment.yaml # Path to the build conda environment | |
auto-update-conda: false | |
show-channel-urls: true # | |
- name: Build and upload the conda packages | |
uses: uibcdf/[email protected] | |
with: | |
meta_yaml_dir: conda | |
python-version: ${{ matrix.python-version }} | |
user: coecms | |
label: auto | |
upload: true | |
token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret |