generated from infinitelambda/template
-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (30 loc) · 928 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build and Deploy Docs Site
on:
workflow_dispatch:
inputs:
version:
description: Document version e.g. 1.1, 1.2
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- name: Install dependencies
run: pip install mkdocs mkdocs-material mkdocs-minify-plugin mike
- name: Configure Git user
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Publish site
run: |
mike deploy --push --update-aliases ${{ inputs.version }} latest
env:
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}