From 9a1fc89a75a254ddd8c3bf3da8ec52a5b38a7698 Mon Sep 17 00:00:00 2001 From: Santos Michelena Date: Thu, 21 Dec 2023 16:56:36 +0100 Subject: [PATCH] fix docs deployment --- .github/workflows/documentation.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index a17021a..27f41c7 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -17,23 +17,13 @@ jobs: - name: Setup Julia uses: julia-actions/setup-julia@v1 with: - version: '1' - - - name: Install Dependencies and Build Documentation + version: '1' # Change this to match your Julia version + - name: Install dependencies run: | - julia --project=docs -e ' - import Pkg; - Pkg.develop(PackageSpec(path=pwd())) - Pkg.instantiate(); - Pkg.add("Documenter")' - julia --project=docs -e ' - using Pkg; - using Documenter: doctest; - using QuadraticTeamDecisionSolver; - doctest(QuadraticTeamDecisionSolver)' - - - name: Build and Deploy Documentation - run: julia --project=docs docs/make.jl + julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' + julia --project=docs/ -e 'import Pkg; Pkg.add("DocumenterCitations")' + - name: Build and deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} + run: julia --project=docs/ docs/make.jl