GitHub Pages
Extracts an archive with static assets and pushes them to a git branch for GitHub Pages deployment.
Configuration
| Option | Description |
|---|---|
branch | Branch to push to. Default: gh-pages |
githubOwner | GitHub project owner. Default: from global config |
githubRepo | GitHub project name. Default: from global config |
Default Behavior
By default, this target:
- Looks for an artifact named
gh-pages.zip - Extracts its contents
- Commits to the
gh-pagesbranch
Example
targets: - name: gh-pages branch: gh-pagesWorkflow
- Create a
gh-pages.zipartifact in your CI workflow - Configure the target in
.craft.yml - Enable GitHub Pages in repository settings to serve from the
gh-pagesbranch