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:
|
||||
- build: |
|
||||
if [ "$GIT_REF" = "refs/heads/main" ]; then
|
||||
cd ficd-zona
|
||||
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
|
||||
- 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" public.tar.gz
|
||||
# else
|
||||
# echo "Skipping upload: 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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue