Skip to content

Implement IIIFv3 and Lambda response streaming #2

Implement IIIFv3 and Lambda response streaming

Implement IIIFv3 and Lambda response streaming #2

Workflow file for this run

name: Deploy doc previews to GitHub Pages
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "preview-${{ github.ref }}"
cancel-in-progress: false
jobs:
deploy-preview:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: |
package-lock.json
docs/package-lock.json
- name: Restore cache
uses: actions/cache@v3
with:
path: |
docs/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('docs/**/package-lock.json') }}-${{ hashFiles('docs/**.[jt]s', 'docs/**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('docs/**/package-lock.json') }}-
- name: Install dependencies
run: npm install
- name: Build with Next.js
run: npx --no-install next build
env:
NEXTJS_BASE_PATH: "/serverless-iiif/pr-preview/pr-${{ github.event.number }}"
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./docs/out/