Skip to content

Update gh-pages.yml #160

Update gh-pages.yml

Update gh-pages.yml #160

Workflow file for this run

name: Publish on GitHub pages
on:
push:
branches:
- main
schedule:
- cron: '30 23 1 * 1'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version-file: '.nvmrc'
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.10'
- name: Install required dependencies
run: |
./scripts/github-setup.sh
- name: Setup Hugo
uses: peaceiris/[email protected]
with:
hugo-version: '0.118.2'
extended: true
- name: Create IIIF derivates
run: docker run -e CHOWN_UID=${UID} -v ${PWD}:${PWD} ghcr.io/cmahnke/iiif-action:latest-jxl-uploader sh -c "cd ${PWD} && ./scripts/iiif.sh"
- name: Generate Files
run: |
./scripts/setup.sh
- name: Build Hugo site
run: hugo --printI18nWarnings
- name: Puppeteer
run: ./themes/projektemacher-base/scripts/github/check-js-errors.sh
- name: Deploy site
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
force_orphan: true