Skip to content

mobile: fix iOS Safari drawer overlap, search field, viewport height … #833

mobile: fix iOS Safari drawer overlap, search field, viewport height …

mobile: fix iOS Safari drawer overlap, search field, viewport height … #833

Workflow file for this run

on:
push:
branches: [main]
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_CONTENT_ACCESS_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CONTENT_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-west-1
AWS_S3_BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME }}
AWS_CF_DISTRIBUTION_ID: ${{ secrets.AWS_CF_DISTRIBUTION_ID }}
PUBLIC_ALGOLIA_KEY: ${{ secrets.PUBLIC_ALGOLIA_KEY}}
PUBLIC_ALGOLIA_SECRET: ${{ secrets.PUBLIC_ALGOLIA_SECRET}}
PUBLIC_ALGOLIA_INDEX: ${{ secrets.PUBLIC_ALGOLIA_INDEX}}
ALGOLIA_ADMIN_SECRET: ${{ secrets.ALGOLIA_ADMIN_SECRET}}
DOCS_KEY: ${{ secrets.DOCS_KEY }}
PUBLIC_SITE_URL: ${{ secrets.PUBLIC_SITE_URL}}
jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest-l
steps:
- uses: actions/checkout@v6
- name: Use Node.js 24
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
- name: Set Swap Space
uses: actionhippie/swap-space@v1
with:
size: 10G
- run: npm ci
- run: npm run build
# Safety net for the --delete sync below: refuse to deploy a truncated build (which
# would wipe live pages from S3). The site emits ~15k HTML files; abort well below that.
# Re-tune this floor if the page count ever legitimately drops (e.g. freezing old versions).
- name: Guard against truncated build
run: |
count=$(find ./dist -name '*.html' | wc -l)
echo "dist contains $count HTML files"
if [ "$count" -lt 5000 ]; then
echo "::error::Build looks truncated ($count HTML files < 5000); aborting before --delete sync."
exit 1
fi
# --delete keeps the bucket in exact sync with the build output, so pages removed
# from source (e.g. retired pre-v1.17.0 versions) are also removed from S3.
- run: aws s3 sync ./dist/ s3://openreplay-documentation --acl public-read --exact-timestamps --delete
- run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID}} --paths "/*"