If you use the default PkgTemplates.jl GitHub Actions template, you just need to change the line in the Documentation job where the version is supplied to setup-julia.
For example, you would change this line:
to version: 'nightly' instead of version: '1'.