-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: bitliu <bitliu@tencent.com>
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Hugo Docs | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- "release/v*" | ||
paths-ignore: | ||
- "**/*.png" | ||
pull_request: | ||
branches: | ||
- "main" | ||
- "release/v*" | ||
paths-ignore: | ||
- "**/*.png" | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Git checkout | ||
Check failure on line 22 in .github/workflows/hugo-docs.yaml GitHub Actions / lint
Check failure on line 22 in .github/workflows/hugo-docs.yaml GitHub Actions / lint
|
||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
hugo-version: 'latest' | ||
extended: true | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
- run: cd site && npm install | ||
- run: cd site && npm run build:production | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./site/public |
Submodule site
added at
2cdb54