Skip to content
Merged
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
48 changes: 34 additions & 14 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Running deployment of documentation to gh-pages
name: Deploy documentation to GitHub Pages

on:
push:
Expand All @@ -7,38 +7,58 @@ on:

permissions:
contents: read
pages: read

concurrency:
group: pages
cancel-in-progress: false

jobs:
run-documentation:
name: Run documentation
build:
name: Build documentation
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: pnpm/action-setup@v6
name: Install pnpm
with:
version: 11.2.2

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
package-manager-cache: false

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run documentation create
- name: Generate documentation
run: pnpm run docusaurus:generate

- name: Run docusaurus build
- name: Build documentation
run: pnpm run docusaurus:build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
- name: Configure GitHub Pages
uses: actions/configure-pages@v5

- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v4
with:
folder: build # The folder the action should deploy.
path: build

deploy:
name: Deploy documentation
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading