-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
Signed-off-by: bitliu <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,52 @@ | ||
name: Docs | ||
name: Hugo Docs | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- "main" | ||
- "release/v*" | ||
paths-ignore: | ||
- "**/*.png" | ||
- "**/*.png" | ||
pull_request: | ||
branches: | ||
- "main" | ||
- "main" | ||
- "release/v*" | ||
paths-ignore: | ||
- "**/*.png" | ||
- "**/*.png" | ||
|
||
jobs: | ||
docs-lint: | ||
runs-on: ubuntu-22.04 | ||
docs-build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- 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: Run markdown linter | ||
uses: nosborn/[email protected] | ||
- name: Setup hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
files: docs/* | ||
config_file: ".github/markdown_lint_config.json" | ||
hugo-version: 'latest' | ||
extended: true | ||
|
||
docs-build: | ||
runs-on: ubuntu-latest | ||
needs: docs-lint | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./tools/github-actions/setup-deps | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install Site Dependencies | ||
run: cd site && npm install | ||
|
||
- name: Generate EG Pages | ||
run: make docs | ||
- name: Build Site | ||
run: cd site && npm run build:production | ||
|
||
# Upload docs for GitHub Pages | ||
- name: Upload GitHub Pages artifact | ||
uses: actions/[email protected] | ||
with: | ||
# Path of the directory containing the static assets. | ||
path: docs/html | ||
path: site/public | ||
# Duration after which artifact will expire in days. | ||
# retention-days: # optional, default is 1 | ||
|
||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.