Description
GitHub Pages Deploy Action is a GitHub Action that deploys your project to GitHub Pages from a workflow. It pushes your production-ready build output to any branch you choose, such as gh-pages or docs, and creates the target branch if it does not exist yet. It can also deploy across repositories and works with GitHub Enterprise. The workflow needs an actions/checkout step before the deployment runs, and if you deploy several times in quick succession, the concurrency setting can prevent overlapping runs. In the repository's Pages settings, the source must be set to deploy from the branch you push to, which is usually gh-pages by default. If you do not supply an access token or an SSH key, the GITHUB_TOKEN needs read and write permissions, which you can grant in the repository or in the workflow file. The action is configured in the with section of the workflow, and secrets are referenced with the usual bracket syntax. You can limit the workflow to pushes on specific branches by changing its on section. The project is maintained by its contributors and sponsors.…
Highlights
- Deploys build output to a branch you choose
- Creates the target branch if it is missing
- Cross-repository deploys and GitHub Enterprise
- Guidance on permissions and concurrency
Ratings & Reviews
No ratings yet
Be the first to rate Github Pages Deploy Action.
People also visit
PR Preview Action
GitHub Action that deploys a pull request preview to GitHub Pages
Github Pages Deploy Action FAQ
What does the action do?
It runs in a GitHub workflow and pushes your built project to GitHub Pages by writing to a branch, such as gh-pages or docs.
What do I need to set up?
A workflow that includes actions/checkout before the deploy step, and the repository's Pages source set to the branch the action pushes to.
Why does my deploy fail with a permissions error?
If you do not supply an access token or SSH key, the GITHUB_TOKEN must have read and write permissions. Grant them in the repository settings or the workflow file.
Can it deploy to another repository?
Yes. The README says it can handle cross-repository deployments.
Does it work with GitHub Enterprise?
Yes. The README says it works with GitHub Enterprise too.
Is it free?
The source is public on GitHub, so it is open source. The README asks for sponsorship to support maintenance.
What are the best Github Pages Deploy Action alternatives?
Popular alternatives to Github Pages Deploy Action include PR Preview Action, DeployHQ and Static Site Hosting by Kinsta. See all Github Pages Deploy Action alternatives





