ci: protect local .env files from rsync --delete via filter rules
This commit is contained in:
parent
7a28263924
commit
2b707379bb
1 changed files with 5 additions and 1 deletions
6
.github/workflows/ci-cd-web-desktop.yml
vendored
6
.github/workflows/ci-cd-web-desktop.yml
vendored
|
|
@ -30,10 +30,14 @@ jobs:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Sync workspace to APP_DIR
|
- name: Sync workspace to APP_DIR (preserving local env)
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "$APP_DIR"
|
mkdir -p "$APP_DIR"
|
||||||
rsync -az --delete \
|
rsync -az --delete \
|
||||||
|
--filter='protect .env' \
|
||||||
|
--filter='protect .env*' \
|
||||||
|
--filter='protect apps/desktop/.env*' \
|
||||||
|
--filter='protect convex/.env*' \
|
||||||
--exclude '.git' \
|
--exclude '.git' \
|
||||||
--exclude '.next' \
|
--exclude '.next' \
|
||||||
--exclude '.env*' \
|
--exclude '.env*' \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue