aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/docs.yml
blob: d84ff21ec4f1e11d242840cf00f1c2e877467542 (plain)
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
38
39

name: Docs

# Controls when the workflow will run
on:
  # Triggers the workflow on push or pull request
  push:
    branches: [ dev, docs ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:


# Allow one concurrent deployment
concurrency:
  group: "pages"
  cancel-in-progress: true


jobs:
  deploy-docs:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - uses: actions/setup-python@v4

     - run: |
          pip install --upgrade pip &&
          pip install mkdocs mkdocs-gen-files pymdown-extensions \
              mkdocs-git-revision-date-plugin mkdocs-autolinks-plugin \
              mkdocs-awesome-pages-plugin 
      - run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
      
      - name: Publish docs
        run: mkdocs gh-deploy