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

Add continuous deployment #3

Merged
merged 2 commits into from Jul 4, 2020
Merged

Add continuous deployment #3

merged 2 commits into from Jul 4, 2020

Conversation

SnowCait
Copy link
Contributor

@SnowCait SnowCait commented Jul 3, 2020

興味本位でデプロイ用の GitHub Actions を作ってみたので PR 送ってみます。
不要でしたらお手数ですがクローズしてしまってください。(ブログのネタになるかなと作ってみただけなので…!)

フォークしたリポジトリで動作確認をして gh-pages ブランチにコミット&プッシュされるところまでは確認したのですが、 yarn deploy を動かすためには docusaurus.config.js を書き換える必要があって PR とは状態が少し異なっています。
そのためマージしてそのまま動作してくれるかはやや不明瞭なのですがもしそれでもよろしければ。
トリガー部分や git config は適当なものに書き換えた方が良いと思うので指定いただければ対応します。

@neon-izm
Copy link
Owner

neon-izm commented Jul 4, 2020

動作確認してみます!数日以内に!

@neon-izm
Copy link
Owner

neon-izm commented Jul 4, 2020

GitHub Actionsに詳しくないので、一旦マージして動かしてみます。ありがとうございます。
@SnowCait さんスゴイ!

@neon-izm neon-izm merged commit f2191a1 into neon-izm:master Jul 4, 2020
@neon-izm
Copy link
Owner

neon-izm commented Jul 4, 2020

無事masterへのプルリクマージでCIが走るようになりました!
@SnowCait さんのおかげで文明開化されました 🙏
ありがとうございます。

@SnowCait SnowCait deleted the feature/github-actions branch July 4, 2020 10:59
@SnowCait
Copy link
Contributor Author

SnowCait commented Jul 4, 2020

無事動いたようで良かったです!

GitHub Actions 自体について説明不足で申し訳なかったのですが secrets.GITHUB_TOKEN について少し補足しておきます。
github.actor に紐づいて GitHub Actions 側で自動発行してくれるトークンになります。(ドキュメント眺めてて気付いたけど github.token でもアクセスできるらしい)
GITHUB_TOKENでの認証 - GitHub Docs

@neon-izm
Copy link
Owner

neon-izm commented Jul 4, 2020

なんと!ありがとうございます。
自前でgithubのsecretから token を追加して、なんとなく動いた!みたいな状況だったので勉強します

@SnowCait
Copy link
Contributor Author

SnowCait commented Jul 4, 2020

Qiita に書いた(記事内でリンクさせてもらった)ので一応こちらでもご報告ですー
Docusaurus を GitHub Actions でデプロイする - Qiita

@neon-izm
Copy link
Owner

neon-izm commented Jul 4, 2020

拝見しました!すてき!!ありがとうございます

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

2 participants