From 41a90016c1f8acbdcca3c65ad360235e0bca70f1 Mon Sep 17 00:00:00 2001 From: Shreyash Gupta Date: Thu, 21 Nov 2024 12:45:50 -0600 Subject: [PATCH] Fixing deployment issues Fixing this error: CondaError: Run 'conda init' before 'conda activate' --- .github/workflows/deploy.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e379b2d..bcc1089 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,24 +26,20 @@ jobs: with: fetch-depth: 0 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' - - name: Setup Conda uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true python-version: '3.11' - - - name: Install book building dependencies - run: | - conda env create -f requirements-book.yml - conda activate jupyter-book + activate-environment: jupyter-book + environment-file: requirements-book.yml + auto-activate-base: false - name: Build the book + shell: bash -l {0} # This ensures conda environment is properly activated run: | + conda info + conda list ls -la chapters/ jupyter-book config sphinx . jupyter-book build . --verbose 2>&1 | tee build.log