Skip to content

Update Tiles small viewport density #6457

Update Tiles small viewport density

Update Tiles small viewport density #6457

name: Deploy
on:
pull_request:
permissions:
checks: write
contents: read
deployments: write
pages: write
id-token: write
jobs:
deploy:
if: ${{ github.repository == 'primer/brand' }}
name: Preview
# SHA for security hardening. Points at 2.4.0 release
uses: primer/.github/.github/workflows/deploy_preview.yml@2bbbbf004e8281856e08f6607eb46a7ee59e65ed # v2.4.0
with:
node_version: 24
install: npm ci
build: |
export NEXT_PUBLIC_SITE_TITLE='Primer'
export NEXT_PUBLIC_REPO='https://github.com/primer/brand'
export NEXT_PUBLIC_REPO_SRC_PATH='apps/next-docs'
npm run build && \
mkdir brand-temp && \
mv apps/next-docs/out/* brand-temp && \
mv brand-temp apps/next-docs/out/brand && \
# This is a client-side redirect that only applies to preview deployments. Workaround for lack of path prefixing.
echo '<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Redirecting...</title><script>window.location.href = "/brand";</script></head><body><p>If you are not redirected automatically, follow this <a href="/brand">link to /brand</a>.</p></body></html>' > apps/next-docs/out/index.html
output_dir: apps/next-docs/out/