ficd.sh/.build.yml
2025-07-02 16:02:49 -04:00

30 lines
700 B
YAML

image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
packages:
- hut
- uv
environment:
site: ficd.ca
tasks:
- build: |
if [ "$GIT_REF" = "refs/heads/main" ]; then
uv run --with 'git+https://git.sr.ht/~ficd/zona' zona build
else
echo "Skipping build: not on main"
fi
# - package: |
# if [ "$GIT_REF" = "refs/heads/main" ]; then
# cd 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" public.tar.gz
# else
# echo "Skipping upload: not on main"
# fi