Add mkdocs-material installation
Update docs.yml Update docs.yml Update docs.yml
This commit is contained in:
parent
a13cf1e4f8
commit
ea33059933
21
.github/workflows/docs.yml
vendored
21
.github/workflows/docs.yml
vendored
@ -5,12 +5,25 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
- 'mkdocs.yml'
|
- 'mkdocs.yml'
|
||||||
|
- '.github/workflows/docs.yml'
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
environment:
|
||||||
|
description: 'Target environment'
|
||||||
|
required: true
|
||||||
|
default: 'production'
|
||||||
|
debug:
|
||||||
|
description: 'Enable debug mode'
|
||||||
|
required: false
|
||||||
|
default: 'false'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
@ -23,9 +36,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install mkdocs
|
pip install mkdocs mkdocs-material
|
||||||
|
|
||||||
|
- name: Configure Git author from GitHub Actions metadata
|
||||||
|
run: |
|
||||||
|
git config --global user.name "${{ github.actor }}"
|
||||||
|
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
||||||
|
|
||||||
- name: Deploy docs
|
- name: Deploy docs
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: mkdocs gh-deploy --force --clean
|
run: mkdocs gh-deploy --force --clean
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user