From 129a4882fa589f7a3d41173fba2a61c0d8fe346b Mon Sep 17 00:00:00 2001 From: Uiolee <22849383+uiolee@users.noreply.github.com> Date: Thu, 19 Oct 2023 23:03:37 +0800 Subject: [PATCH] docs(deployment): update github-pages for git submodule (#2079) --- source/docs/github-pages.md | 2 +- source/zh-cn/docs/github-pages.md | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/docs/github-pages.md b/source/docs/github-pages.md index b66f28a13c..e02d7c6878 100644 --- a/source/docs/github-pages.md +++ b/source/docs/github-pages.md @@ -11,7 +11,7 @@ In this tutorial, we use [GitHub Actions](https://docs.github.com/en/actions) to ``` $ git push -u origin main ``` - - The `public/` folder is not (and should not be) uploaded by default, make sure the `.gitignore` file contains `public/` line. The folder structure should be roughly similar to [this repo](https://github.com/hexojs/hexo-starter), without the `.gitmodules` file. + - The `public/` folder is not (and should not be) uploaded by default, make sure the `.gitignore` file contains `public/` line. The folder structure should be roughly similar to [this repo](https://github.com/hexojs/hexo-starter). 3. Check what version of Node.js you are using on your local machine with `node --version`. Make a note of the major version (e.g., `v16.y.z`) 4. In your GitHub repo's setting, navigate to **Settings** > **Pages** > **Source**. Change the source to **GitHub Actions** and save. diff --git a/source/zh-cn/docs/github-pages.md b/source/zh-cn/docs/github-pages.md index 0ede8c4aa6..a945401804 100755 --- a/source/zh-cn/docs/github-pages.md +++ b/source/zh-cn/docs/github-pages.md @@ -32,7 +32,11 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + # If your repository depends on submodule, please see: https://github.com/actions/checkout + submodules: recursive - name: Use Node.js 16.x uses: actions/setup-node@v2 with: