From ace7198a5274c74a9add508d51ca668861804b87 Mon Sep 17 00:00:00 2001 From: matthewwww Date: Fri, 20 Sep 2024 18:28:17 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5eb25eb..f99fedb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,5 +23,10 @@ jobs: pip install mkdocs mkdocs-material - name: Deploy to GitHub Pages + - name: Deploy to GitHub Pages + env: + GH_PAT: ${{ secrets.GH_PAT }} run: | - mkdocs gh-deploy --config-file site/mkdocs.yml --force + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + mkdocs gh-deploy --config-file site/mkdocs.yml --force --remote-name origin --remote-branch gh-pages --remote-url https://x-access-token:${{ secrets.GH_PAT }}@github.com/${{ github.repository }}.git