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