
Deploy Pages
actions/deploy-pages
Deploy to GitHub Pages from Actions
1,900stars
400forks
3.2M uses
Deploymentv2.0.1About
This action is used to deploy your static site to GitHub Pages. It handles the deployment process and ensures your site is published correctly with proper configuration and caching.
Workflow Example
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v4
with:
fetch-depth: 0
- name: Run tests
run: npm testInputs
repositoryRepository name with owner
Default: ${{ github.repository }}
refThe branch, tag or SHA to checkout
tokenPersonal access token (PAT)
Default: ${{ github.token }}
fetch-depthNumber of commits to fetch
Default: 1
Related Actions
Metadata
Language
TypeScript
Last Updated
1/10/2024
Latest Release
v2.0.1