Skip to content

Commit 82e1d58

Browse files
committed
export env path for CondaPkg
1 parent 0b3e7fd commit 82e1d58

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/documentation.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ jobs:
1919
version: '1.10'
2020
- name: Install dependencies
2121
run: |
22-
julia -e 'ENV["PYTHON"]=ENV["CONDA"] * "/envs/rms_env/bin/python"; using Pkg; Pkg.add("PyCall"); Pkg.build("PyCall")'
23-
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate();'
22+
current_path=${{ github.workspace }}
23+
export JULIA_CONDAPKG_ENV="$current_path/rms_env"
24+
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.build("ReactionMechanismSimulator");'
2425
- name: Build and deploy
2526
env:
2627
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
2728
DOCUMENTER_DEBUG: true
28-
run: julia --color=yes --project=docs docs/make.jl
29+
run: |
30+
current_path=${{ github.workspace }}
31+
export JULIA_CONDAPKG_ENV="$current_path/rms_env"
32+
julia --color=yes --project=docs docs/make.jl

0 commit comments

Comments
 (0)