Skip to content

Commit

Permalink
📝 Docs
Browse files Browse the repository at this point in the history
Signed-off-by: bitliu <bitliu@tencent.com>
  • Loading branch information
Xunzhuo committed Sep 8, 2023
1 parent 2e6211a commit a5f743b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/hugo-docs.yaml
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

View workflow job for this annotation

GitHub Actions / lint

22:7 [indentation] wrong indentation: expected 4 but found 6

Check failure on line 22 in .github/workflows/hugo-docs.yaml

View workflow job for this annotation

GitHub Actions / lint

22:7 [indentation] wrong indentation: expected 4 but found 6

Check failure on line 22 in .github/workflows/hugo-docs.yaml

View workflow job for this annotation

GitHub Actions / lint

22:7 [indentation] wrong indentation: expected 4 but found 6
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
1 change: 1 addition & 0 deletions site
Submodule site added at 2cdb54

0 comments on commit a5f743b

Please sign in to comment.