Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

試しにmasterブランチの時の場合のみデプロイするよう設定 #51

Merged
merged 1 commit into from Oct 14, 2017

Conversation

igrep
Copy link
Member

@igrep igrep commented Oct 14, 2017

参考: https://qiita.com/dora56/items/cafae475daec802b6b8f
#50 の問題のうち、

  1. 手でデプロイするのはしんどい
    • CIでデプロイさせる

への対応です。

@igrep
Copy link
Member Author

igrep commented Oct 14, 2017

試しにマージしちゃいます!うまくいかなかったらごめんなさい! 🙏

@igrep igrep merged commit ee61a8a into master Oct 14, 2017
@igrep igrep deleted the deploy-on-ci branch October 14, 2017 08:01
igrep added a commit that referenced this pull request Oct 14, 2017
#50 の問題への対応である、
#51 において、いろいろ間違いがあったため修正しました。

具体的には、

```
git checkout gh-pages
```

という行や、

```
git checkout master
```

という行において、
gh-pagesブランチ、masterブランチ、ともにTravis CIの環境では明示的に`git fetch`しないと`git checkout`できないようになっているみたいなので、修正しております。

恐らく、

```
git clone --depth=50 --branch=test-deploy
```

と、 `--branch` オプションを使用して`git clone`しているため、masterやgh-pagesブランチが見えていないと思われます。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant