GitHub Pages and GitHub Actions

Deploy your static site to GitHub Pages using GitHub Actions

Originally published at github.com

Lastmod: 2021-06-30

View Source Edit
Deploy your static site to GitHub Pages using GitHub Actions

Table of Contents

GitHub Actions for GitHub Pages

GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site with Static Site Generators peaceiris/actions-gh-pages

This is a GitHub Action to deploy your static files to GitHub Pages. This deploy action can be combined simply and freely with Static Site Generators (Hugo, mdBook, MkDocs, Gatsby, GitBook, etc.).

- name: Deploy
  uses: peaceiris/actions-gh-pages@v3
  with:
    deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
    publish_dir: ./public

The above example step will deploy ./public directory to gh-pages branch.


comments powered by Disqus

Random Recommended Posts