From 0490ccd6d190918fbd2f3bb0138576e0b3392fd2 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Thu, 21 Dec 2023 18:43:29 -0700 Subject: [PATCH] ci: Fix documention workflow --- .github/workflows/CI.yml | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8d5d32c..6c88850 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -46,28 +46,36 @@ jobs: docs: name: Documentation runs-on: ubuntu-latest + permissions: + actions: write + contents: write + statuses: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 with: version: "1" arch: x64 - - run: | - julia --project=docs -e ' - using Pkg - Pkg.develop(PackageSpec(path=pwd())) - Pkg.instantiate()' - - run: | - julia --project=docs -e ' - using Documenter: DocMeta, doctest - using HapLink - DocMeta.setdocmeta!(HapLink, :DocTestSetup, :(using HapLink); recursive=true) - doctest(HapLink)' - - run: julia --project=docs docs/make.jl + - uses: julia-actions/cache@v1 + - name: Configure doc environment + shell: julia --project=docs --color=yes {0} + run: | + using Pkg + Pkg.develop(PackageSpec(path=pwd())) + Pkg.instantiate() + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-docdeploy@v1 env: - JULIA_PKG_SERVER: "" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} + JULIA_PKG_SERVER: "" + - name: Run doctests + shell: julia --project=docs --color=yes {0} + run: | + using Documenter: DocMeta, doctest + using HapLink + DocMeta.setdocmeta!(HapLink, :DocTestSetup, :(using HapLink); recursive=true) + doctest(HapLink) - uses: actions/upload-artifact@v3 if: ${{ env.ACT }} with: