Merge pull request #1 from ilaflott/copilot/create-independent-packag… #1
This file contains hidden or 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: 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 . |