forked from gethomepage/homepage
-
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.
- Loading branch information
Showing
1 changed file
with
11 additions
and
12 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 |
---|---|---|
|
@@ -2,15 +2,15 @@ name: Docs | |
|
||
on: | ||
push: | ||
tags: [ 'v*.*.*' ] | ||
branches: ['main'] | ||
tags: ["v*.*.*"] | ||
branches: ["main"] | ||
paths: | ||
- 'docs/**' | ||
- 'mkdocs.yml' | ||
- "docs/**" | ||
- "mkdocs.yml" | ||
pull_request: | ||
paths: | ||
- 'docs/**' | ||
- 'mkdocs.yml' | ||
- "docs/**" | ||
- "mkdocs.yml" | ||
merge_group: | ||
workflow_dispatch: | ||
|
||
|
@@ -22,16 +22,13 @@ jobs: | |
name: Linting Checks | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- | ||
name: Checkout repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- | ||
name: Install python | ||
- name: Install python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- | ||
name: Check files | ||
- name: Check files | ||
uses: pre-commit/[email protected] | ||
|
||
test: | ||
|
@@ -55,6 +52,7 @@ jobs: | |
- run: sudo apt-get install pngquant | ||
- run: pip install mike | ||
- run: pip install mkdocs-material | ||
- run: pip install "mkdocs-material[imaging]" | ||
- name: Test Docs Build | ||
run: MKINSIDERS=false mkdocs build | ||
deploy: | ||
|
@@ -80,6 +78,7 @@ jobs: | |
- run: sudo apt-get install pngquant | ||
- run: pip install mike==2.0.0 | ||
- run: pip install git+https://${GH_TOKEN}@github.com/benphelps/mkdocs-material-insiders.git | ||
- run: pip install "mkdocs-material[imaging]" | ||
- name: Set Git config | ||
run: | | ||
git config --global user.name "GitHub Action" | ||
|