diff --git a/.forgejo/workflows/build-and-release.yaml b/.forgejo/workflows/build-and-release.yaml index cd3d0b5..da9846f 100644 --- a/.forgejo/workflows/build-and-release.yaml +++ b/.forgejo/workflows/build-and-release.yaml @@ -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\`. diff --git a/build.sh b/build.sh index 0b48322..d5db74d 100755 --- a/build.sh +++ b/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