aboutsummaryrefslogtreecommitdiff
path: root/local/hooks/repo-specific/deploy-mutiny-site
blob: fb3dda3b3a56a45c01c85498854eecd831229cf5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/execlineb

backtick -n tempdir { mktemp -d }
importas -u tempdir tempdir

export COMBINES "
    file:///srv/git/repositories/mutiny/idioms.git
    file:///srv/git/repositories/mutiny/filesystem.git
    file:///srv/git/repositories/mutiny/praxis.git
"

if { git clone -q /srv/git/repositories/mutiny/docs.git "${tempdir}"/ }
if { make -C "${tempdir}" -s site }
if { rsync -rul --del "${tempdir}"/site/generated/ deploy@angela.somas.is:/srv/www/mutiny.red/ }
rm -rf "${tempdir}"