From 3463650d80109e990c97345a69112cf8979ad225 Mon Sep 17 00:00:00 2001 From: necessarylion Date: Wed, 29 Nov 2023 22:50:04 +0630 Subject: [PATCH] separate 2 steps --- .github/workflows/docs.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index ea0c6a3..a1efa99 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -31,12 +31,15 @@ jobs: REPO_URL=$(git config --get remote.origin.url) echo "Repository URL: $REPO_URL" - - name: Deploy to GitHub Pages with Force Push + - name: Git config run: | - cd site git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" git config --global init.defaultBranch main + + - name: Deploy to GitHub Pages with Force Push + run: | + cd site git init git remote add origin https://necessarylion:${{ secrets.PUSH_TO_PROTECTED_BRANCH }}@github.com/dartondox/dox.git git checkout -b gh-pages