forgejo-themes/.forgejo/workflows/build-and-release.yaml
Lea a8b64bdf5d
Some checks failed
Build and release / relesae (push) Failing after 45s
build css in workflow
2023-07-29 20:26:22 +02:00

35 lines
737 B
YAML

name: Build and release
on:
push:
branches: [master]
jobs:
relesae:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
apt-get install -y npm
npm install -g less
- name: Check out repository
uses: actions/checkout@v3
- name: Build CSS
run: ./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: |
```ini
[ui]
THEMES = ${{ steps.build.outputs.themes }}
```