Skip to content

fix(SearchPage): update title formatting method for consistency #11

fix(SearchPage): update title formatting method for consistency

fix(SearchPage): update title formatting method for consistency #11

name: Deploy to GitHub Pages
on:
push:
branches:
- main
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# 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 production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0 # Not needed if lastUpdatedBy and showLastUpdateTime are disabled
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: pnpm
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build website
run: pnpm build
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./build
deploy:
name: Deploy to GitHub Pages
needs: build
permissions:
pages: write # To publish to GitHub Pages
id-token: write # To verify the deployment originates from an authorized workflow
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4