Skip to content

Build and publish

Build and publish #12

Workflow file for this run

name: Build and publish
on:
workflow_dispatch
jobs:
build_pages:
name: Publish Edition as GitHub Pages Website
runs-on: ubuntu-latest
env:
ANT_OPTS: -Xmx6g
TYPESENSE_HOST: typesense.acdh-dev.oeaw.ac.at
TYPESENSE_PORT: 443
TYPESENSE_PROTOCOL: https
TYPESENSE_API_KEY: ${{secrets.TYPESENSE_API_KEY}}
steps:
- name: Perform Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install Saxon, Ant and Python
run: |
pip install -r requirements.txt
apt-get update && apt-get install openjdk-11-jre-headless ant -y --no-install-recommend
./shellscripts/script.sh
- name: Fetch the data
run: ./fetch_data.sh
- name: Build Search Index
run: python make_ts_index.py
- name: update favicons
run: python update_favicons.py
- name: Build
run: |
ant
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_dir: ./html