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
5 changes: 4 additions & 1 deletion .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
branches:
- master

concurrency: preview-${{ github.ref }}

jobs:
build:
name: Build Docusaurus
Expand Down Expand Up @@ -67,6 +69,8 @@ jobs:
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:
Expand All @@ -92,7 +96,6 @@ jobs:
version: 10.11.0

- name: Install and Build
if: github.event_name == 'pull_request' # Only preview on PR
run: |
pnpm install
pnpm run build
Expand Down
Loading