Skip to content

docs: Adds article on driver.js user onboarding #119

docs: Adds article on driver.js user onboarding

docs: Adds article on driver.js user onboarding #119

name: Azure Static Web Apps CI/CD - Docs
on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened, closed ]
branches:
- main
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job Docs
permissions:
contents: read
env:
NODE_VERSION: "22"
DOCS_LINK_CHECK_CACHE_DIR: .tmp/link-check-cache
DOCS_LINK_CHECK_CACHE_SCOPE: ${{ github.head_ref || github.ref_name }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Install playwright browsers
run: npx playwright install --with-deps
- name: Restore docs link-check cache
id: docs-link-check-cache-restore
uses: actions/cache/restore@v4
with:
path: ${{ env.DOCS_LINK_CHECK_CACHE_DIR }}
key: docs-link-check-${{ runner.os }}-${{ env.DOCS_LINK_CHECK_CACHE_SCOPE }}-${{ github.sha }}
restore-keys: |
docs-link-check-${{ runner.os }}-${{ env.DOCS_LINK_CHECK_CACHE_SCOPE }}-
- name: Build docs
run: NODE_ENV=production npm run build
env:
CLARITY_PROJECT_ID: ${{ secrets.CLARITY_PROJECT_ID }}
- name: Save docs link-check cache
if: always()
uses: actions/cache/save@v4
with:
path: ${{ env.DOCS_LINK_CHECK_CACHE_DIR }}
key: docs-link-check-${{ runner.os }}-${{ env.DOCS_LINK_CHECK_CACHE_SCOPE }}-${{ github.sha }}
- name: Verify blog sidebar i18n and ad visibility
run: npm run verify:blog-sidebar-i18n
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_FLOWER_DOCS }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_location: "dist"
api_location: ""
skip_app_build: true
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_FLOWER_DOCS }}
action: "close"