From d8d9f1a5849ac5dda319fafabae9f694f48f648d Mon Sep 17 00:00:00 2001 From: George Birikorang Date: Fri, 5 Sep 2025 10:03:33 -0700 Subject: [PATCH] feat: update Drone CI configuration to include Tailwind CSS build step --- .drone.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index b916830..87aa402 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,11 +3,16 @@ type: docker name: deploy steps: - - name: build + - name: install image: node:18-alpine commands: - - npm ci || npm install - - npm run build || npm build + - npm install -D tailwindcss@^3.4.0 + + - name: build-css + image: node:18-alpine + commands: + # Generate optimized CSS from src/input.css styles/main.css + - npx tailwindcss -i ./src/input.css -o ./styles/main.css --minify - name: sync-files image: alpine:latest @@ -16,8 +21,7 @@ steps: path: /host-target commands: - cp -a . /host-target - - - chmod -R 777 /host-target + - chmod -R 755 /host-target volumes: - name: website-data