Skip to content

Commit

Permalink
add fork preview deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rezrah committed Feb 2, 2024
1 parent 365e01e commit 9a92d9d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy_docs_preview_forks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy

on:
pull_request_target:

permissions:
checks: write
contents: read
deployments: write
pages: write
id-token: write

jobs:
deploy:
if: ${{ github.repository != github.event.pull_request.head.repo.full_name }}
name: Preview
# SHA for security hardening. Points at last verified HEAD of main branch.
uses: primer/.github/.github/workflows/deploy_preview.yml@cd223835608ca5e9401e0ffe6081f6d2fcc912f3
with:
node_version: 16
install: npm ci --legacy-peer-deps && cd apps/docs && npm ci --legacy-peer-deps && cd ..
build: npm run build && npm run build:docs:preview && npm run build:storybook:preview
output_dir: apps/docs/public/

0 comments on commit 9a92d9d

Please sign in to comment.