Skip to content

Use JSON in pregen

Use JSON in pregen #71

Workflow file for this run

name: Deploy to Github Pages
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Install dependencies
run: npm install
- name: Generate EasyDB data
run: node src/generate.js --instance="https://heidicon.ub.uni-heidelberg.de"
- name: Build
run: npm run build
- uses: actions/upload-pages-artifact@v3
with:
path: 'dist/'
deploy:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
id: deployment