GitHub Pages へ deploy する GitHub Actions の実行結果を push 毎に deploy して debug する

GitHub Pages へ deploy する GitHub Actions の実行結果を push 毎に deploy して debug する方法をご紹介します。

GitHub

背景 GitHub Pages への deploy 処理を debug したい

GitHub Pages へ deploy する GitHub Actions の実行結果を debug する小ネタです。

前提として、本サイトの過去記事 GitHub Pages へ Custom GitHub Actions Workflows を使って Next.js (SSG) をデプロイする を参照してください。

サンプルコード on: push: のみ記述

実際に改修したコードは [DNM] Deploy to GitHub Pages on every push · codenote-net/nextjs-blog-starter-sandbox@5e1e89a から確認できます。

on:
  push:

のように記述すると git push 毎に GitHub Pages へ deploy されるので GitHub Actions の実行結果を確認して debug しましょう。

以上、GitHub Pages へ deploy する GitHub Actions の実行結果を debug した、現場からお送りしました。