Skip to content

Merge branch 'main' of https://github.com/cksapp/Datto-DBPool_PSWrapper #12

Merge branch 'main' of https://github.com/cksapp/Datto-DBPool_PSWrapper

Merge branch 'main' of https://github.com/cksapp/Datto-DBPool_PSWrapper #12

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: Setup PowerShell
uses: bjompen/UpdatePWSHAction@v1.0.1
with:
FixedVersion: '7.3.12'
- name: MkDocs GH-Deploy
if: github.ref == 'refs/heads/main'
shell: pwsh
run: ./build.ps1 -Bootstrap -Task PublishDocs