-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1001 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build and publish
on:
workflow_dispatch:
jobs:
build_pages:
name: Publish Edition as GitHub Pages Website
runs-on: ubuntu-latest
env:
ANT_OPTS: -Xmx5g
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
- name: Install Saxon, Ant and Python
run: |
apt-get update && apt-get install openjdk-11-jre-headless ant -y --no-install-recommend
./shellscripts/script.sh
pip install -r requirements.txt
- name: Fetch Data
run: ./fetch_data.sh
- name: Fetch Imprint
run: ./shellscripts/dl_imprint.sh
- name: Process Data
run: ./process.sh
- name: Build
run: |
ant
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_dir: ./html