forked from envoyproxy/gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
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 <[email protected]>
- Loading branch information
Showing
358 changed files
with
3,553 additions
and
3,143 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 |
---|---|---|
@@ -1,47 +1,67 @@ | ||
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 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run markdown linter | ||
uses: nosborn/[email protected] | ||
with: | ||
files: docs/* | ||
config_file: ".github/markdown_lint_config.json" | ||
- name: Run markdown linter | ||
uses: nosborn/[email protected] | ||
with: | ||
files: site/content/* | ||
config_file: ".github/markdown_lint_config.json" | ||
|
||
docs-build: | ||
runs-on: ubuntu-latest | ||
needs: docs-lint | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./tools/github-actions/setup-deps | ||
- name: Git checkout | ||
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' | ||
|
||
- 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 | ||
# Duration after which artifact will expire in days. | ||
# retention-days: # optional, default is 1 | ||
# Upload docs for GitHub Pages | ||
- name: Upload GitHub Pages artifact | ||
uses: actions/[email protected] | ||
with: | ||
# Path of the directory containing the static assets. | ||
path: site/public | ||
# Duration after which artifact will expire in days. | ||
# retention-days: # optional, default is 1 | ||
|
||
# This workflow contains a single job called "build" | ||
docs-publish: | ||
|
@@ -61,6 +81,6 @@ jobs: | |
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/[email protected] | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/[email protected] |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.