image: alpine/edge oauth: pages.sr.ht/PAGES:RW packages: - hut - hugo - rsync secrets: - 4c5cebdb-c744-4dfb-a69a-30b9bdfe048c environment: site: status.adast.dk mirror: srht@adast.dk tasks: - package: | cd $site hugo tar -C public -cvz . > ../site.tar.gz - upload: | hut pages publish site.tar.gz -d $site --site-config $site/.siteconfig.json sshopts="ssh -o StrictHostKeyChecking=no" rsync --rsh="$sshopts" -ruz $site/public/ $mirror:/var/www/$site