25 строки
655 B
YAML
25 строки
655 B
YAML
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
|
|
name: Publish Docs
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install pip
|
|
run: python3 -m pip install --upgrade pip setuptools wheel
|
|
- name: Install MkDocs
|
|
run: |
|
|
pip install mkdocs
|
|
pip install mkdocs-macros-plugin
|
|
- name: MkDocs build
|
|
run: mkdocs build
|
|
- name: MkDocs deploy
|
|
run: mkdocs gh-deploy --force
|