Skip to content

test(ci): update GitHub Pages workflow for Docusaurus #5

test(ci): update GitHub Pages workflow for Docusaurus

test(ci): update GitHub Pages workflow for Docusaurus #5

Workflow file for this run

name: Deploy Docusaurus to GitHub Pages
on:
push:
branches: [master]
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Build website
run: yarn build
- name: Configure Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: build
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4