Updated build job

This commit is contained in:
Daniel Fichtinger 2025-07-02 16:11:29 -04:00
parent ed6c1e9522
commit be40ed0196

View file

@ -8,23 +8,24 @@ environment:
tasks: tasks:
- build: | - build: |
if [ "$GIT_REF" = "refs/heads/main" ]; then if [ "$GIT_REF" = "refs/heads/main" ]; then
cd ficd-zona
uv run --with 'git+https://git.sr.ht/~ficd/zona' zona build uv run --with 'git+https://git.sr.ht/~ficd/zona' zona build
else else
echo "Skipping build: not on main" echo "Skipping build: not on main"
fi fi
# - package: | - package: |
# if [ "$GIT_REF" = "refs/heads/main" ]; then if [ "$GIT_REF" = "refs/heads/main" ]; then
# cd public cd ficd-zona/public
# tar -cvz . > ../public.tar.gz tar -cvz . > ../public.tar.gz
# else else
# echo "Skipping package: not on main" echo "Skipping package: not on main"
# fi fi
# - upload: | - upload: |
# if [ "$GIT_REF" = "refs/heads/main" ]; then if [ "$GIT_REF" = "refs/heads/main" ]; then
# hut pages publish -d "$site" public.tar.gz hut pages publish -d "$site" ficd-zona/public.tar.gz
# else else
# echo "Skipping upload: not on main" echo "Skipping upload: not on main"
# fi fi