'How to Define Conda Build output on Github Actions and Cache Installs

I am trying to build a conda package on multiple OS and python versions using Github Actions. I am struggling with what would seem to be a simple thing. I need to set the output so I can upload it as an artifact (not in the action yet). Since each OS the path is different (windows vs mac vs linux). I wanted to put it in a local folder. Which I do by using the --croot ./output_build.

When I do that, I still am struggling on building the artifact uploader:

Here is what I tried:

- uses: actions/upload-artifact@v2
        with:
          name: build-${{ matrix.os }}-${{matrix.python-version}}-${{ github.sha }}
          path: build/output_build/*.tar.bz2
          retention-days: 10

The action states that no files exist.

name: Python Package using Conda

on: [push]

jobs:
  build-linux:
    runs-on: ${{matrix.os}}
    strategy:
      matrix:
         os: [ubuntu-latest]
         python-version: ['3.7']
      max-parallel: 5

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Add conda to system path
      run: |
        # $CONDA is an environment variable pointing to the root of the miniconda directory
        echo $CONDA/bin >> $GITHUB_PATH
    - name: Install dependencies using Miniconda
      run: |
        conda env update --file environment.yml --name base
    - name: Install Conda-Build
      run: |
        cd ./build
        mkdir output_build
        conda install conda-build
        conda update conda
        conda update conda-build
        conda build --croot ./output_build -c conda-forge internalpackagerecipe
        cd ./ouput_build
        dir


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source