From f86ecdfe860e15b50844cbf7c49e5bbbdfb3b560 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Sat, 27 Jun 2020 22:42:01 +0900 Subject: [PATCH] docs: Add use case (#371) A GitHub Free Plan account cannot use the GitHub Pages in a private repository. To make your source contents private and deploy it with the GitHub Pages, you can deploy your site from a private repository to a public repository using the external_repository. --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a5f366c..c95779e 100644 --- a/README.md +++ b/README.md @@ -346,7 +346,14 @@ For example: You can use `deploy_key` or `personal_token`. When you use `deploy_key`, set your private key to the repository which includes this action and set your public key to your external repository. -**Be careful, `GITHUB_TOKEN` has no permission to access to external repositories. Please create a personal access token and set it to `personal_token` like `personal_token: ${{ secrets.PERSONAL_TOKEN }}`.** +**Note that `GITHUB_TOKEN` has no permission to access to external repositories. Please create a personal access token and set it to `personal_token` like `personal_token: ${{ secrets.PERSONAL_TOKEN }}`.** + +Use case: + +A GitHub Free Plan account cannot use the GitHub Pages in a private repository. To make your source contents private and deploy it with the GitHub Pages, you can deploy your site from a private repository to a public repository using this option. + +- `peaceiris/homepage`: A private repository running this action with `external_repository: peaceiris/peaceiris.github.io` +- `peaceiris/peaceiris.github.io`: A public repository using GitHub Pages ### ⭐️ Force orphan