Debugging GitHub Actions for GitHub Pages Deployment by Deploying on Every Push

Tadashi Shigeoka ·  Sat, August 19, 2023

I’ll introduce a method to debug GitHub Actions execution results for GitHub Pages deployment by deploying on every push.

GitHub

Background: Wanting to Debug GitHub Pages Deployment Process

This is a small tip for debugging GitHub Actions execution results for GitHub Pages deployment.

As a prerequisite, please refer to the past article on this site: Deploying Next.js (SSG) to GitHub Pages Using Custom GitHub Actions Workflows.

Sample Code: Writing Only on: push:

You can check the actual modified code at [DNM] Deploy to GitHub Pages on every push · codenote-net/nextjs-blog-starter-sandbox@5e1e89a.

on:
  push:

By writing it like this, it will deploy to GitHub Pages on every git push, so you can check GitHub Actions execution results and debug.

That’s all from the Gemba, where I debugged GitHub Actions execution results for GitHub Pages deployment.