Build of mopper conda package for new release #10
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: Test conda deployment of package with Python ${{ matrix.python-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
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/setup-miniconda@v3.0.4 | |
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/action-build-and-upload-conda-packages@v1.3.0 | |
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 |