This commit is contained in:
parent
9037eb117f
commit
41226df94b
|
@ -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\`.
|
||||
|
|
7
build.sh
7
build.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue