Build and publish #147
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- name: Install Saxon, Ant and Fundament | |
run: | | |
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: install python things | |
run: | | |
pip install -r requirements.txt | |
- name: Build the app | |
run: | | |
python make_calendar_data.py | |
python make_ts_index.py | |
ant | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{secrets.GITHUB_TOKEN}} | |
publish_dir: ./html |