Documenter.jl: `push_preview` does not work in Github Actions

Created on 28 Jan 2020  ยท  1Comment  ยท  Source: JuliaDocs/Documenter.jl

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

Question

Most helpful comment

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).

>All comments

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).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Roger-luo picture Roger-luo  ยท  3Comments

mforets picture mforets  ยท  3Comments

juliohm picture juliohm  ยท  6Comments

SimonEnsemble picture SimonEnsemble  ยท  3Comments

haampie picture haampie  ยท  3Comments