Skip to content

Add CI workflow to build Docker ctr img with offline copy of the docs #662

Add CI workflow to build Docker ctr img with offline copy of the docs

Add CI workflow to build Docker ctr img with offline copy of the docs #662

name: deploy-docusaurus
on:
push:
pull_request:
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out repo
uses: actions/checkout@v4
with:
# Only fetch files we actually need:
fetch-depth: 0
filter: 'blob:none'
# Node is required for npm
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: "19" # FIXME: this is very old and out-of-date. Bump the version!
# Install and build Docusaurus website
- name: Build Docusaurus website
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
folder: ./build