Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# This workflow builds and deploys the Docusaurus documentation to GitHub Pages
# when changes are pushed to the main branch.
name: Deploy Docusaurus to GitHub Pages

on:
push:
branches:
- main
paths:
- 'web/docs/**'

# Prevent parallel deployments when multiple commits are pushed to main
# in a short time.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
# Use the latest LTS version of Node.js already installed on the runner.
node-version: latest
check-latest: 'false'
cache: yarn
cache-dependency-path: web/package-lock.json

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Install dependencies
working-directory: web
run: yarn install --frozen-lockfile --non-interactive

- name: Build website
working-directory: web
run: yarn build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: web/build

deploy:
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
4 changes: 4 additions & 0 deletions .wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ BarmanObjectStore
BarmanObjectStoreConfiguration
BarmanObjectStores
CloudNativePG
Docusaurus
EnvVar
Gi
IfNotPresent
Expand All @@ -13,6 +14,7 @@ ObjectStore
ObjectStoreSpec
ObjectStoreStatus
PITR
README
RecoveryWindow
RetentionPolicy
ServerRecoveryWindow
Expand Down Expand Up @@ -42,12 +44,14 @@ gcs
gf
github
hostpath
http
https
imagePullPolicy
io
isWALArchiver
kubectl
kubernetes
localhost
md
minio
namespace
Expand Down
Loading