deploy the docs app from a PR to gh-pages #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy PR previews | |
concurrency: preview-${{ github.ref }} | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
# `pr-preview-action` assumes by default that the preview should be removed during the closed event, | |
# which it only sees if you explicitly add it to the workflow. | |
- closed | |
jobs: | |
deploy-preview: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: npm ci && npm run bootstrap | |
- name: Build docs-app | |
run: npm run build:docs | |
if: github.event.action != 'closed' | |
- uses: rossjrw/pr-preview-action@v1 | |
with: | |
source-dir: ./packages/__docs__/__build__ | |
preview-branch: gh-pages | |
umbrella-dir: pr-preview | |
action: auto |