Skip to content

Commit

Permalink
Try with git rm -r * instead of rsync
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Aug 22, 2024
1 parent d794e52 commit f35f80f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f35f80f

Please sign in to comment.