3
2

More than 5 years have passed since last update.

Circle CI でgh-pages自動ビルドして自動デプロイ

Posted at

事前準備

  • Githubのリポジトリ作る
  • Circle CIに登録
  • Circle CIのプロジェクト設定から「Checkout SSH Keys」で「UserKey」を追加

Circle.yml

こんなん

machine:
  node:
    version: 6.1.0
  timezone: Asia/Tokyo

deployment:
  publish:
    branch: master
    commands:
      - npm run build
      - git config --global user.name "circleci"
      - git config --global user.email "circleci@chatbox-inc.com"
      - git rm .gitignore
      - git add public
      - git commit -m "[ci skip] build on circle ci"
      - git subtree split --branch gh-pages --prefix public
      - git push origin gh-pages:gh-pages -f
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2