From bdb9dc2f5954ee84e695768b1aa893d0e0fefc1c Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Thu, 30 May 2024 14:59:04 +1200 Subject: [PATCH 1/2] ci: push preview builds of docs --- docs/make.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/make.jl b/docs/make.jl index b6f367765..91d2f2d09 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -83,4 +83,4 @@ Mocking.apply(mocking_patch) do ) end -deploydocs(; repo="github.com/JuliaComputing/JuliaHub.jl") +deploydocs(; repo="github.com/JuliaComputing/JuliaHub.jl", push_preview=true) From 3e694cb2a85e2b1c104836e00b354c90d2a0a27e Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Thu, 30 May 2024 15:04:06 +1200 Subject: [PATCH 2/2] pass github token --- .github/workflows/CI.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c4bbfb0ae..bafd89ad5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -112,6 +112,9 @@ jobs: docs: name: Documentation runs-on: ubuntu-latest + permissions: + pull-requests: read # Required when using `push_preview=true` + statuses: write # Optional, used to report documentation build statuses steps: - uses: actions/checkout@v3 - uses: julia-actions/setup-julia@v1 @@ -128,6 +131,7 @@ jobs: run: julia --color=yes --project=docs/ --code-coverage docs/make.jl env: DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v3 with: