Skip to content

feat: OA009 stale floor detector (#770) #227

feat: OA009 stale floor detector (#770)

feat: OA009 stale floor detector (#770) #227

Workflow file for this run

name: Docs Site
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "website/**"
- ".github/workflows/docs-site.yml"
pull_request:
branches:
- main
paths:
- "website/**"
- ".github/workflows/docs-site.yml"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
name: Build Docusaurus site
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm
cache-dependency-path: website/package-lock.json
- name: Install website dependencies
run: npm ci
working-directory: website
- name: Build website
run: npm run build
working-directory: website
- name: Upload Pages artifact
if: github.event_name == 'push'
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: website/build
report-build-status:
name: report-build-status
needs: build
runs-on: ubuntu-latest
if: always()
steps:
- name: Report build status
run: |
echo "Build completed with status: ${{ needs.build.result }}"
if [ "${{ needs.build.result }}" != "success" ]; then
exit 1
fi
deploy:
name: Deploy to GitHub Pages
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0