From d3a0c418beaa5a2bf45aff329682b135105d5297 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Fri, 10 Jan 2025 18:41:11 +0000 Subject: [PATCH] Use rsync --- .forgejo/workflows/hotfix.yml | 2 +- .forgejo/workflows/production.yml | 2 +- .forgejo/workflows/release.yml | 2 +- .forgejo/workflows/stage.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/hotfix.yml b/.forgejo/workflows/hotfix.yml index ea16e2c..3ce09a3 100644 --- a/.forgejo/workflows/hotfix.yml +++ b/.forgejo/workflows/hotfix.yml @@ -22,7 +22,7 @@ jobs: - run: yarn test - name: "Copy files over to location" - run: cp -r . ${{ secrets.HOTFIX_REPO_PATH }} + run: rsync -rvzP . ${{ secrets.HOTFIX_REPO_PATH }} deploy: environment: prod diff --git a/.forgejo/workflows/production.yml b/.forgejo/workflows/production.yml index fa080ee..584bd56 100644 --- a/.forgejo/workflows/production.yml +++ b/.forgejo/workflows/production.yml @@ -22,7 +22,7 @@ jobs: - run: yarn test - name: "Copy files over to location" - run: cp -r . ${{ secrets.PROD_REPO_PATH }} + run: rsync -rvzP . ${{ secrets.PROD_REPO_PATH }} deploy: environment: prod diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 00af61f..d816ada 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - run: yarn test - name: "Copy files over to location" - run: cp -r . ${{ secrets.RELEASE_REPO_PATH }} + run: rsync -rvzP . ${{ secrets.RELEASE_REPO_PATH }} deploy: environment: prod diff --git a/.forgejo/workflows/stage.yml b/.forgejo/workflows/stage.yml index 372a3d6..e81ef91 100644 --- a/.forgejo/workflows/stage.yml +++ b/.forgejo/workflows/stage.yml @@ -22,7 +22,7 @@ jobs: - run: yarn test - name: "Copy files over to location" - run: cp -r . ${{ secrets.STAGE_REPO_PATH }} + run: rsync -rvzP . ${{ secrets.STAGE_REPO_PATH }} deploy: environment: prod