rdm.sfb1451.de/.forgejo/workflows/deploy.yml
Michał Szczepanik d0b2b81596 Speed up CI build with shallow theme clone
The entire relearn theme repository provides for a massive checkout
(about 1 min 30 s during recent builds), so we abandon the recursive
datalad checkout action and initialize the submodule with depth 1. There
is no annex in this repository, so we don't need more steps.
2026-11-13 17:23:46 +01:00

34 lines
826 B
YAML

name: Deploy on webserver
on:
push:
branches:
- trunk
jobs:
deploy:
name: Build site with hugo and deploy on success
runs-on: debian-13
steps:
- name: Checkout
uses: https://hub.psychoinformatics.de/actions/taiki-e-checkout-action@v1
- name: Fetch theme
run: git submodule update --init --depth 1 -- themes/hugo-theme-relearn
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo@v3
with:
hugo-version: '0.169.0'
extended: true
- name: Generate site
run: hugo
- name: Deploy
uses: actions/git-pages@v2
with:
site: https://rdm.sfb1451.de/
server: hub.psychoinformatics.de
password: ${{ secrets.DNS_CHALLENGE_PASSWORD }}
source: public/