DNS の設定
d.oppara.tv
の CNAME をoppara.github.io
に設定する。
% dig d.oppara.tv @8.8.8.8
...
;; ANSWER SECTION:
d.oppara.tv. 3600 IN CNAME oppara.github.io.
oppara.github.io. 3600 IN A 185.199.108.153
oppara.github.io. 3600 IN A 185.199.111.153
oppara.github.io. 3600 IN A 185.199.109.153
oppara.github.io. 3600 IN A 185.199.110.153
...
GitHub Actions を設定する
GitHub Actions による GitHub Pages への自動デプロイ - Qiita
変更箇所
pull_request:
を削除- hugo のバージョンを 0.94.0 に変更
publish_dir: ./public
を削除- gh-pages ブランチの直下にデプロイする。
- cname option を設定
- 重要 設定しないとデプロイ時に Custom domain の設定が初期化され、URL にアクセスしても 404 になってしまう。
GitHub の設定
Settings -> Pages
