Skip to content

Use microsoft pwsh 7.2 lts docker image for mkdocs build #11

Use microsoft pwsh 7.2 lts docker image for mkdocs build

Use microsoft pwsh 7.2 lts docker image for mkdocs build #11

name: Build_DocsSite
on:
workflow_dispatch:
push:
branches:
- main
paths:
- docs/**
- mkdocs.yml
- .github/workflows/Build_DocsSite.yml
jobs:
DeployDocs:
name: Build and deploy docs
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/powershell:lts-7.2-ubuntu-22.04
# Grant the minimum permissions necessary for this job to publish to GitHub Pages
permissions:
contents: write
pages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Using caches in a larger project can really speed up builds
- uses: actions/cache@v4
with:
key: ${{ runner.os }}-mkdocs
path: .cache
- name: MkDocs GH-Deploy
if: github.ref == 'refs/heads/main'
shell: pwsh
run: ./build.ps1 -Bootstrap -Task PublishDocs