OpenGL error with Documenter.jl

I’m trying to set up some documentation for a package using Documenter.jl and I’m getting an OpenGL error when I try to build and deploy everything on Github Actions. I have GLMakie as a dependency which is causing the problem, but I’m not sure what to do to resolve the issue.

The specific error message led me to this trouble shooting page and eventually this yaml file for headless github action with GLMakie. Do I just copy that file over to my project?

The important lines in our docs workflow are

and

Which handle setting up software OpenGL and running the julia process such that it can access those resources.

Adding those two lines into the default documenter template for github actions solved the issue! :tada: