Skip to content

Merge pull request #1 from ilaflott/copilot/create-independent-packag… #1

Merge pull request #1 from ilaflott/copilot/create-independent-packag…

Merge pull request #1 from ilaflott/copilot/create-independent-packag… #1

Workflow file for this run

name: publish_conda
on:
push:
branches:
- main
tags:
- '*'
permissions:
contents: read
jobs:
condapublish:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout Files
uses: actions/checkout@v4
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: true
channels: conda-forge,noaa-gfdl
- name: Configure Conda
run: |
echo "setting strict channel priority"
conda config --set channel_priority strict
echo "setting anaconda_upload to yes"
conda config --set anaconda_upload yes
echo "printing conda config just in case"
conda config --show
- name: Conda install conda-build
run: |
echo "conda install conda-build"
conda install conda-forge::conda-build conda-forge::anaconda-client
- name: Build fremorizer Conda Package
run: |
echo "conda building fremorizer package"
export ANACONDA_API_TOKEN=${{ secrets.ANACONDA_TOKEN }}
conda build .