Skip to content

Added text to see pr prveiw #6

Added text to see pr prveiw

Added text to see pr prveiw #6

Workflow file for this run

name: Deploy PR previews
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
concurrency: preview-${{ github.ref }}
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: npm install
- name: Build Docusaurus
run: npm run build
- name: Deploy preview
if: github.event.action != 'closed'
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./build/
preview-branch: main
umbrella-dir: pr-preview
action: deploy
- name: Remove PR Preview
if: github.event.action == 'closed' && !github.event.pull_request.merged
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./build/
preview-branch: main
umbrella-dir: pr-preview
action: remove