GitHub-ActionsでカスタムドメインのGitHub-Pagesをデプロイすると、カスタムドメインの登録が消える

 2020-3-1 |  2020-8-1 |  1 min read

GitHub-Actions でデプロイを行うと、custom ドメインで設定したものが初期化されていました。 原因は GitHub-Actions で利用しているactions-gh-pagesにて、cname の設定を忘れていたためでした。

こちらに乗っている通り、with.cnameに自身のカスタムドメイン名を記入すれば正常にデプロイされるはずです。

1
2
3
4
5
6
- name: Deploy
  uses: peaceiris/actions-gh-pages@v3
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}
    publish_dir: ./public
    cname: github.com

このエントリーをはてなブックマークに追加

comments powered by Disqus

Tags

Hugo | 7 Setting | 5 git | 5 AWS | 5 VSCode | 4 css | 3 ci | 3 JavaScript | 3 intellij | 3 windows | 2 Extention | 2 Route53 | 2 技術書典7 | 2 webpack | 2 iCloud | 2 Homebrew | 2 poem | 2 Docker | 2 SpringBoot | 2 github-actions | 2 日本語 | 2 keyboard | 2 書き方 | 2 Terminal | 2 積本処理 | 2 markdown | 2 kaspersky | 2 command | 2 GoogleDrive | 1 go | 1 gradle | 1 forNewbie | 1 React | 1 A-Frame | 1 chrome | 1 MacBook | 1 Marp | 1 Ruby | 1 phoenix | 1 Feeling | 1 AWSLoft | 1 Utility | 1 revealjs | 1 memo | 1 license | 1 Onsen-UI | 1 Tech | 1 yarn | 1 S3 | 1 LT | 1




Archives

2020 (31)
2019 (22)
2017 (1)
2016 (3)