Actions/actions/deploy-pages
actions

Deploy Pages

actions/deploy-pages

View on GitHub

Deploy to GitHub Pages from Actions

1,900stars
400forks
3.2M uses
Deploymentv2.0.1

About

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 test

Inputs

repository

Repository name with owner

Default: ${{ github.repository }}

ref

The branch, tag or SHA to checkout

token

Personal access token (PAT)

Default: ${{ github.token }}

fetch-depth

Number of commits to fetch

Default: 1

Metadata

Language

TypeScript

Last Updated

1/10/2024

Latest Release

v2.0.1