From bf4059fc5fd6794cf481dfca0128be880550e572 Mon Sep 17 00:00:00 2001 From: Justin Charles <143245796+justin212407@users.noreply.github.com> Date: Sat, 18 Jan 2025 02:47:29 +0530 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3782dc4b7a..3a7ce4838a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,6 +18,7 @@ jobs: uses: actions/checkout@v2 with: token: ${{ secrets.GH_TOKEN }} + fetch-depth: 0 - name: Set up Git run: | @@ -27,7 +28,7 @@ jobs: - name: Deploy to GitHub Pages run: | - git checkout gh-pages + git checkout gh-pages || git checkout --orphan gh-pages # Make changes to gh-pages branch if necessary git add . git commit -m "Deploy updates"