From f35f80fa27ecb41f9a3c23f584cdd769c40621cd Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Thu, 22 Aug 2024 16:39:11 +0300 Subject: [PATCH] Try with `git rm -r *` instead of rsync Signed-off-by: Martin Tzvetanov Grigorov --- .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 448b2e8926c..436cbf91f33 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 "dev@avro.apache.org" + 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 "dev@avro.apache.org" - 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