This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/main by this push:
     new f35f80fa2 Try with `git rm -r *` instead of rsync
f35f80fa2 is described below

commit f35f80fa27ecb41f9a3c23f584cdd769c40621cd
Author: Martin Tzvetanov Grigorov <[email protected]>
AuthorDate: Thu Aug 22 16:39:11 2024 +0300

    Try with `git rm -r *` instead of rsync
    
    Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
---
 .github/workflows/deploy-docs.yml | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/deploy-docs.yml 
b/.github/workflows/deploy-docs.yml
index 448b2e892..436cbf91f 100644
--- a/.github/workflows/deploy-docs.yml
+++ b/.github/workflows/deploy-docs.yml
@@ -254,19 +254,18 @@ jobs:
       - name: Push the new website
         run: |
           set -ex
-          rsync \
-            -a \
-            --delete \
-            --exclude '/.git/' \
-            ${{ runner.temp }}/website/ \
-            ./
+
+          git config --global user.email "[email protected]"
+          git config --global user.name "Github Actions"
+          git checkout --orphan asf-site-staging
+
+          git rm -r *
+
+          mv ${{ runner.temp }}/website/* . 
           echo "publish:
                   whoami: asf-site
                 " > .asf.yaml
           touch .nojekyll
-          git config --global user.email "[email protected]"
-          git config --global user.name "Github Actions"
-          git checkout --orphan asf-site-staging
           git add --all
           git commit -m "Publish built website triggered by ${{ github.sha }}"
           git checkout asf-site

Reply via email to