ficd.sh/.build.yml
2025-07-05 02:35:03 -04:00

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@db8d12991d200fb466a4f256f57d23c627a69142
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