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