Skip to content

Update GitHub CI

Update GitHub CI #317

Workflow file for this run

name: Build and Deploy to GH Pages
on:
push:
pull_request:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install and build
run: |
# Deploy each branch and pull request to tify-iiif-viewer.github.io/tify/<branch>
echo BASE=/tify/${{ github.event.pull_request.number || github.ref_name }} >> .env
echo HASHED=1 >> .env
echo OUTDIR=./dist-ci/${{ github.event.pull_request.number || github.ref_name }} >> .env
npm ci
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
clean: false
folder: dist-ci