image: debian/bullseye oauth: pages.sr.ht/PAGES:RW sources: - https://git.sr.ht/~sircmpwn/openring - https://git.disroot.org/huyngo/conlang packages: - golang - hugo environment: site: huyngo.srht.site tasks: - install: | cd openring go build -o openring sudo cp openring /usr/local/bin/ - embed: | cp -r conlang/src $site/content/conlang cd $site/content/conlang mv index.md _index.md sed "s/\//_/g" SUMMARY.md | sed "s/\._/.\//g" | sed "s/.md/\//g" | grep -v "Introduction" >> _index.md rm SUMMARY.md ../../preprocess.sh find -type f | grep "sh$" | xargs rm - package: | cd $site ./create-webring.sh hugo --baseURL="https://huyngo.srht.site" cd public tar -cvz . > ../../site.tar.gz - upload: | acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz