Skip to content

deploy on a couple additional branches for now, only deploy on those … #2

deploy on a couple additional branches for now, only deploy on those …

deploy on a couple additional branches for now, only deploy on those … #2

Workflow file for this run

name: Deploy Docusaurus to GitHub Pages
on:
# Trigger the workflow on pull requests and pushes to specific branches
pull_request:
push:
branches:
- main
- docs-in-hdb
- gh-pages-workflow
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these deployments to complete.
# This shouldn't be necessary for most cases, but it can help avoid conflicts if multiple pushes happen in quick succession.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install root dependencies
run: npm ci
- name: Install site dependencies
run: npm run site:install
- name: Build Docusaurus site
run: npm run site:build
- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: site/build
deploy:
needs: build
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
# Only deploy on push to specific branches, not on PRs
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/docs-in-hdb' || github.ref == 'refs/heads/gh-pages-workflow')
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