Skip to content

Commit

Permalink
Fixing deployment issues
Browse files Browse the repository at this point in the history
Fixing this error: CondaError: Run 'conda init' before 'conda activate'
  • Loading branch information
shreyashguptas committed Nov 21, 2024
1 parent 3317fbc commit 41a9001
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41a9001

Please sign in to comment.