From e735eb3b5d8c1e89786cc167b496956dc1f19b34 Mon Sep 17 00:00:00 2001 From: Josh Siegle Date: Thu, 14 Mar 2024 11:29:53 -0700 Subject: [PATCH] Update gh-pages.yml Make sure deleted files are no longer being served --- .github/workflows/gh-pages.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 1cd5202..247f2d3 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -44,8 +44,9 @@ jobs: - name: Commit documentation changes run: | git clone https://github.com/${{ github.repository_owner }}/onix-docs.git --branch gh-pages --single-branch gh-pages - cp -r docs/html/* gh-pages/ cd gh-pages + rm -rf * + cp -r ../docs/html/* . git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add .