ci: preserve server .env files during rsync to APP_DIR (fix missing BETTER_AUTH_SECRET)

This commit is contained in:
Esdras Renan 2025-10-08 14:10:29 -03:00
parent a72af75c42
commit 7a28263924

View file

@ -33,7 +33,13 @@ jobs:
- name: Sync workspace to APP_DIR - name: Sync workspace to APP_DIR
run: | run: |
mkdir -p "$APP_DIR" mkdir -p "$APP_DIR"
rsync -az --delete --exclude '.git' --exclude '.next' ./ "$APP_DIR"/ rsync -az --delete \
--exclude '.git' \
--exclude '.next' \
--exclude '.env*' \
--exclude 'apps/desktop/.env*' \
--exclude 'convex/.env*' \
./ "$APP_DIR"/
- name: Install and build (Next.js) - name: Install and build (Next.js)
run: | run: |