Files
action-tests/.gitea/workflows/test-build.yaml
T
2026-05-22 22:16:49 +00:00

25 lines
703 B
YAML

name: Test build
on: workflow_dispatch
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Clone doki-theme-gitea
uses: actions/checkout@v6
with:
repository: infrastructure/doki-theme-gitea
submodules: true
- name: Install dependencies
run: npm i
- name: Generate the themes
run: npm run generate
- name: Check the output
run: "[ $(ls -1 output/ | wc -l) != 0 ]"
- name: Copy the files
run: |-
(cd output && tar c .) | docker run -i \
-v /srv/gitea/gitea/gitea/public/assets/css:/target \
-w /target \
alpine:3.23 sh -c 'rm theme-doki*.css && tar x'