Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbasquensmunoz committed Aug 27, 2024
1 parent e172ff8 commit b59e8df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ jobs:
- uses: julia-actions/cache@v1
- name: Install dependencies
run: julia --color=yes --project=docs/ docs/instantiate.jl
#run: julia -e 'using Pkg; Pkg.Registry.add(RegistrySpec(url="https://github.com/marcbasquensmunoz/geothermal_registry")); Pkg.Registry.add("General"); Pkg.add("Documenter"); Pkg.add("Literate"); Pkg.activate(joinpath(pwd(), "docs")); Pkg.develop(PackageSpec(path = joinpath(@__DIR__, ".."))); Pkg.resolve()'
#run: julia -e 'using Pkg; Pkg.add(url="https://gitlab.com/alblaz/BoreholeResponseFunctions.git"); Pkg.add(url="https://github.com/marcbasquensmunoz/FiniteLineSource"); Pkg.develop(path=pwd()); Pkg.add("Documenter"); Pkg.add("Literate"); Pkg.build("BoreholeNetworksSimulator"); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia --color=yes docs/make.jl

#Pkg.add(url="https://gitlab.com/alblaz/BoreholeResponseFunctions.git"); Pkg.add(url="https://github.com/marcbasquensmunoz/FiniteLineSource");
#Pkg.Registry.add(RegistrySpec(url="https://github.com/marcbasquensmunoz/geothermal_registry")); Pkg.Registry.add("General"); Pkg.add("FiniteLineSource"); Pkg.add("BoreholeResponseFunctions");
run: julia --color=yes --project=docs/ docs/make.jl
7 changes: 2 additions & 5 deletions docs/instantiate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ using Pkg

geothermal_registry = "https://github.com/marcbasquensmunoz/geothermal_registry"

documenter_directory = joinpath(@__DIR__, "..")
project_directory = isempty(ARGS) ? @__DIR__() : joinpath(pwd(), ARGS[1])

@show documenter_directory
@show project_directory
project_directory = joinpath(@__DIR__, "..")
documenter_directory = isempty(ARGS) ? @__DIR__() : joinpath(pwd(), ARGS[1])

cd(project_directory) do
Pkg.Registry.add(RegistrySpec(url = geothermal_registry))
Expand Down

0 comments on commit b59e8df

Please sign in to comment.