Merge branch 'main' of https://github.com/cksapp/Datto-DBPool_PSWrapper #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |