pages¶
Manage the targeted repository’s GitHub Pages site.
Added in version 1.1.0.
Part of the github resource type: all functions operate on the
repository the job was dispatched to. The profile parameter
defaults to the profile named in the resource declaration.
- saltext.github.resources.github.modules.pages.get(*, profile=None)[source]¶
Return information about the GitHub Pages site of the targeted repository.
CLI Example:
salt 'my-org/my-repo' pages.get
- profile
Profile configuration name to use. Defaults to the resource declaration’s profile.
- saltext.github.resources.github.modules.pages.setup(*, build_type=None, source_branch=None, source_path=None, profile=None)[source]¶
Configure a GitHub Pages site for the targeted repository. Returns the data of the created site.
CLI Example:
salt 'my-org/my-repo' pages.setup build_type=workflow
- build_type
Process by which the site is built, either
legacy(deploy from a branch) orworkflow(GitHub Actions).- source_branch
For
legacybuilds, the repository branch to publish from.- source_path
For
legacybuilds, the repository directory to publish from, either/or/docs.- profile
Profile configuration name to use. Defaults to the resource declaration’s profile.
- saltext.github.resources.github.modules.pages.update(*, build_type=None, source_branch=None, source_path=None, cname=Ellipsis, https_enforced=None, profile=None)[source]¶
Update the GitHub Pages site configuration of the targeted repository.
CLI Example:
salt 'my-org/my-repo' pages.update build_type=workflow
- build_type
Process by which the site is built, either
legacy(deploy from a branch) orworkflow(GitHub Actions).- source_branch
For
legacybuilds, the repository branch to publish from.- source_path
For
legacybuilds, the repository directory to publish from, either/or/docs.- cname
Custom domain for the site. Pass
nullexplicitly to remove it, omit to leave it unchanged.- https_enforced
Enforce HTTPS for the site.
- profile
Profile configuration name to use. Defaults to the resource declaration’s profile.