ci: protect local .env files from rsync --delete via filter rules

This commit is contained in:
Esdras Renan 2025-10-08 14:21:28 -03:00
parent 7a28263924
commit 2b707379bb

View file

@ -30,10 +30,14 @@ jobs:
node-version: 20
cache: 'pnpm'
- name: Sync workspace to APP_DIR
- name: Sync workspace to APP_DIR (preserving local env)
run: |
mkdir -p "$APP_DIR"
rsync -az --delete \
--filter='protect .env' \
--filter='protect .env*' \
--filter='protect apps/desktop/.env*' \
--filter='protect convex/.env*' \
--exclude '.git' \
--exclude '.next' \
--exclude '.env*' \