ficd.sh/.build.yml

31 lines
771 B
YAML

image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
packages:
- hut
- uv
environment:
site: ficd.ca
zonaref: git+https://git.sr.ht/~ficd/zona@4ad4696962da6e3567cb49a8eb16354bd0fc9e94
tasks:
- build: |
if [ "$GIT_REF" = "refs/heads/main" ]; then
cd ficd-zona
uv run --with "$zonaref" zona build
else
echo "Skipping build: not on main"
fi
- package: |
if [ "$GIT_REF" = "refs/heads/main" ]; then
cd ficd-zona/public
tar -cvz . > ../public.tar.gz
else
echo "Skipping package: not on main"
fi
- upload: |
if [ "$GIT_REF" = "refs/heads/main" ]; then
hut pages publish -d "$site" ficd-zona/public.tar.gz
else
echo "Skipping upload: not on main"
fi