forgejo-themes/build.sh
Lea 0b2e4b5288
All checks were successful
Build and release / release (push) Successful in 55s
update readme and include default themes
2023-07-29 21:33:43 +02:00

22 lines
753 B
Bash
Executable file

#!/usr/bin/env bash
BASEDIR="$( cd "$( dirname "$0" )" && pwd )"
cd "${BASEDIR}"
theme_list="forgejo-auto,forgejo-light,forgejo-dark,auto,gitea,arc-green"
for theme in edge gruvbox gruvbox-material everforest; do
for variant in dark light auto; do
theme_list="$theme_list,$theme-$variant"
lessc -x "src/${theme}-${variant}.less" > "dist/theme-${theme}-${variant}.css"
done
done
for theme in nord palenight soft-era sonokai sonokai-andromeda sonokai-atlantis sonokai-espresso sonokai-maia sonokai-shusia; do
theme_list="$theme_list,$theme"
lessc -x "src/${theme}.less" > "dist/theme-${theme}.css"
done
# First character in theme_list will be a comma, let's remove that
echo "themes=$theme_list" >> $GITHUB_OUTPUT