With deploydocs(..., push_preview = true), I get this output in the log:
โ Info: Deployment criteria for deploying devbranch build from GitHub Actions:
โ - โ ENV["GITHUB_REPOSITORY"]="JuliaPlots/MakieGallery.jl" occurs in repo="github.com/JuliaPlots/MakieGallery.jl"
โ - โ ENV["GITHUB_EVENT_NAME"]="push" is "push"
โ - โ ENV["GITHUB_REF"] matches devbranch="master"
โ - โ ENV["GITHUB_ACTOR"] exists
โ - โ ENV["DOCUMENTER_KEY"] exists exists
โ Deploying: โ
https://github.com/JuliaPlots/MakieGallery.jl/pull/187/checks?check_run_id=411479592
The make.jl file is here: https://github.com/JuliaPlots/MakieGallery.jl/blob/master/docs/make.jl
The issue is that your documentation build runs on: push not on on: pull_request. Hence the GITHUB_EVENT_NAME is set to probably push, whereas Documenter expects pull_request.
For the PR previews to work, you need to make sure that your builds run as part of the PR (i.e. on: pull_request).
Most helpful comment
The issue is that your documentation build runs
on: pushnot onon: pull_request. Hence theGITHUB_EVENT_NAMEis set to probablypush, whereas Documenter expectspull_request.For the PR previews to work, you need to make sure that your builds run as part of the PR (i.e.
on: pull_request).