Skip to content

Merge pull request #9 from AnoshanJ/feat/doc-improvements-0.8 #11

Merge pull request #9 from AnoshanJ/feat/doc-improvements-0.8

Merge pull request #9 from AnoshanJ/feat/doc-improvements-0.8 #11

Workflow file for this run

name: Deploy Documentation Site
on:
push:
branches:
- main
paths:
- 'documentation/**'
- '.github/workflows/docs-deploy.yml'
jobs:
build:
name: Build Documentation Site
runs-on:
- codebuild-wso2_agent-manager-${{ github.run_id }}-${{ github.run_attempt }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: documentation/package-lock.json
- name: Install dependencies
working-directory: ./documentation
run: npm ci
- name: Security Audit
working-directory: ./documentation
run: npm audit --audit-level=high --omit=dev
- name: Build documentation
working-directory: ./documentation
run: npm run build
- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: documentation/build
deploy:
name: Deploy Documentation to GitHub Pages
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on:
- codebuild-wso2_agent-manager-${{ github.run_id }}-${{ github.run_attempt }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4