Skip to content

Commit 6c1b80a

Browse files
committed
removing docs env before creation
1 parent 1ecb2e9 commit 6c1b80a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@ jobs:
3939
echo "$CONDA/bin" >> $GITHUB_PATH
4040
conda --version
4141
42+
- name: Remove existing docs env if present
43+
run: |
44+
source $CONDA/etc/profile.d/conda.sh
45+
conda deactivate || true
46+
conda env remove -n pydsm-docs || true
47+
4248
- name: Create docs env from environment-docs.yml
4349
run: |
44-
# Create env (will be named as in file)
45-
conda env create -f environment-docs.yml || { echo "Env create failed (maybe exists), attempting update"; conda env update -f environment-docs.yml --prune; }
50+
conda env create -f environment-docs.yml
4651
source $CONDA/etc/profile.d/conda.sh
4752
conda activate pydsm-docs
4853
python --version

0 commit comments

Comments
 (0)