Skip to content

Commit

Permalink
Adding the workflow for deploying the doc site
Browse files Browse the repository at this point in the history
  • Loading branch information
il-toti committed Jan 11, 2024
1 parent 4122553 commit 20d6db1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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-awesome-pages-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 }}

0 comments on commit 20d6db1

Please sign in to comment.