Skip to content

chore(deps): bump @docusaurus/core from 3.8.0 to 3.9.1 #146

chore(deps): bump @docusaurus/core from 3.8.0 to 3.9.1

chore(deps): bump @docusaurus/core from 3.8.0 to 3.9.1 #146

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- master
pull_request:
types: [ opened, synchronize, reopened ]
branches:
- master
workflow_dispatch:
concurrency: preview-${{ github.ref }}
jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
permissions:
contents: read # to download the repository
pages: write # to upload the build artifact
id-token: write # to verify the deployment originates from an appropriate source
env:
DOCUSAURUS_BASE_URL: https://chargepi.cc/
SUPPORT_EMAIL: ${{ vars.SUPPORT_EMAIL }}
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: latest
# cache: yarn
- uses: pnpm/action-setup@v4
with:
version: 10.11.0
- name: Install dependencies
run: pnpm install # --frozen-lockfile
- name: Build website
run: pnpm build
- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v4
with:
path: build
deploy:
name: Deploy to GitHub Pages
needs: build
if: github.event_name == 'push'
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
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
deploy-preview:
name: "Deploy Preview for PR #${{github.event.pull_request.number}}"
if: github.event_name == 'pull_request' # Only run for pull requests
runs-on: ubuntu-latest
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
pull-requests: write
contents: write
id-token: write
env:
DOCASAURUS_BASE_URL: https://chargepi.cc/pr-preview-action/pr-${{github.event.pull_request.number}}
steps:
- name: Checkout
uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: latest
# cache: yarn
- uses: pnpm/action-setup@v4
with:
version: 10.11.0
- name: Install and Build
run: |
pnpm install
pnpm run build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./build/
action: 'auto'
pages-base-url: chargepi.cc