el fix
All checks were successful
Build and release / release (push) Successful in 10m6s

This commit is contained in:
Lea 2023-07-29 20:43:55 +02:00
parent 9037eb117f
commit 41226df94b
Signed by: Lea
GPG key ID: 1BAFFE8347019C42
2 changed files with 11 additions and 5 deletions

View file

@ -29,7 +29,12 @@ jobs:
token: ${{ github.token }}
tag: $(git rev-parse --short ${{ github.sha }})
release-notes: |
```ini
Automatic release triggered by commit ${{ github.sha }}
Add the following to \`app.ini\`:
\`\`\`ini
[ui]
THEMES = ${{ steps.build.outputs.themes }}
```
\`\`\`
And download the css files from this release to \`$GITEA_DATA_DIR/gitea/public/css\`.

View file

@ -7,14 +7,15 @@ theme_list=""
for theme in edge gruvbox gruvbox-material everforest; do
for variant in dark light auto; do
theme-list="$theme_list,$theme-$variant"
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"
theme_list="$theme_list,$theme"
lessc -x "src/${theme}.less" > "dist/theme-${theme}.css"
done
echo "themes=$theme_list" >> $GITHUB_OUTPUT
# First character in theme_list will be a comma, let's remove that
echo "themes=${theme_list:1}" >> $GITHUB_OUTPUT