Our runner now offers the Orinoco runner image (1) under the debian-13 label, which provides the latest OS release and nicer tooling available from the get-go. (1) https://hub.datalad.org/forgejo/runner-images
37 lines
1.5 KiB
YAML
37 lines
1.5 KiB
YAML
name: Build and publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Build site and deploy on success
|
|
runs-on: debian-13
|
|
steps:
|
|
- name: install quarto
|
|
# this uses hardcoded / checksummed download
|
|
# consider https://github.com/quarto-dev/quarto-actions/blob/main/setup/action.yml
|
|
# the original workflow uses "sudo apt install", which errors ootb, maybe fork?
|
|
run: |
|
|
cat << EOF > checksum.txt
|
|
7f0c4769e7f0e55f50d922f44b18db5118fb388d2b8fd27291fe1f8beafb43eb quarto-1.10.19-linux-amd64.deb
|
|
EOF
|
|
wget -q https://github.com/quarto-dev/quarto-cli/releases/download/v1.10.19/quarto-1.10.19-linux-amd64.deb
|
|
sha256sum --check checksum.txt
|
|
apt -y install ./quarto-1.10.19-linux-amd64.deb
|
|
- name: checkout
|
|
uses: https://hub.psychoinformatics.de/actions/taiki-e-checkout-action@v1
|
|
- name: build
|
|
# HTML is enough for now; PDF build requires TinyTeX or another distribution
|
|
# TinyTeX can be installed with `quarto install`, or by the quarto setup action
|
|
run: quarto render --to html
|
|
- name: publish
|
|
if: forgejo.repository_owner == 'orinoco'
|
|
uses: actions/git-pages@v2
|
|
with:
|
|
site: https://${{ forgejo.event.repository.owner.username }}.hub.psychoinformatics.de/${{ forgejo.event.repository.name }}/
|
|
server: hub.psychoinformatics.de
|
|
token: ${{ forgejo.token }}
|
|
source: _book/
|