forked from codinget/action-tests
ci: try to update doki theme
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
name: Test build
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: privileged-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'
|
||||
Reference in New Issue
Block a user