forgejo-themes/.forgejo/workflows/build-and-release.yaml
Lea e3d5b823c6
Some checks failed
Build and release / release (push) Failing after 2s
maybe
2023-07-29 21:04:59 +02:00

40 lines
938 B
YAML

name: Build and release
on:
push:
branches: [master]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Install lessc
run: apt install -g less
- name: Check out repository
uses: actions/checkout@v3
- name: Build CSS
run: |
mkdir dist
./build.sh
id: build
- name: Publish release
uses: actions/forgejo-release@v1
with:
direction: upload
release-dir: dist
token: ${{ github.token }}
tag: $(git rev-parse --short ${{ github.sha }})
release-notes: |
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\`.