Skip to content

chore: Automated telemetry update #24

chore: Automated telemetry update

chore: Automated telemetry update #24

Workflow file for this run

name: Docs
on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- '.github/workflows/Docs.yml'
- 'docs/**'
- 'mkdocs*.yml'
- 'psakefile.ps1'
- 'requirements-linux.psd1'
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
- name: MkDocs Build
shell: pwsh
env:
AZURE_APPINSIGHTS_CONNECTION_STRING: ${{ vars.AZURE_APPINSIGHTS_CONNECTION_STRING }}
run: |
.\build.ps1 -Bootstrap -SkipIsolation mkdocs-build
- name: Upload GitHub Pages artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: 'Output/site/'
deploy:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
preview: ${{ github.ref != 'refs/heads/main' }}