-
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.
feat: expose more instance metadata categories (#44)
- Loading branch information
1 parent
7d085e2
commit 4a0847a
Showing
5 changed files
with
52 additions
and
35 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
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 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 |
---|---|---|
|
@@ -21,6 +21,10 @@ | |
name: docs | ||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/docs.yml" | ||
- "docs/**" | ||
- "mkdocs.yml" | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
@@ -36,45 +40,53 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python runtime | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Set up build cache | ||
uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
key: ${{ runner.os }}-${{ hashFiles('.cache/**') }} | ||
path: .cache | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
pip install \ | ||
"mkdocs-git-committers-plugin-2>=0.4.3" \ | ||
"mkdocs-git-revision-date-localized-plugin>=1.0" \ | ||
"mkdocs-minify-plugin>=0.3" \ | ||
"mkdocs-redirects>=1.0" | ||
- name: Install MkDocs Insiders | ||
if: github.event.repository.fork == false | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_MKDOCS }} | ||
run: | | ||
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git | ||
- name: Build | ||
run: mkdocs build | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_MKDOCS }} | ||
|
||
- name: HTML Test | ||
uses: wjdp/htmltest-action@master | ||
with: | ||
path: site | ||
config: htmltest.yml | ||
|
||
- name: Deploy documentation | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_MKDOCS }} | ||
run: | | ||
mkdocs gh-deploy --force | ||
mkdocs --version | ||
- name: Set Custom Domain | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
uses: octokit/[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 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