Updated build job
This commit is contained in:
parent
ed6c1e9522
commit
be40ed0196
1 changed files with 14 additions and 13 deletions
27
.build.yml
27
.build.yml
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue