Skip to content

Commit

Permalink
docs(deployment): update github-pages for git submodule (#2079)
Browse files Browse the repository at this point in the history
  • Loading branch information
uiolee authored Oct 19, 2023
1 parent a1adadf commit 129a488
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/docs/github-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion source/zh-cn/docs/github-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 129a488

Please sign in to comment.