From bcc867323fbeb1f89dec74269fb1dffa7d0879ba Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 24 Sep 2024 09:02:45 -0700 Subject: [PATCH] Try to fix docs-publish --- .github/workflows/docs-publish.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/docs-publish.yml b/.github/workflows/docs-publish.yml index 592449d53..def1ee1e2 100644 --- a/.github/workflows/docs-publish.yml +++ b/.github/workflows/docs-publish.yml @@ -61,8 +61,10 @@ jobs: - pre-commit steps: - uses: actions/checkout@v4 - with: - ref: main + - name: Configure Git Credentials + run: | + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com - uses: actions/setup-python@v5 with: python-version: 3.x @@ -76,16 +78,6 @@ jobs: - run: sudo apt-get install pngquant - run: pip install git+https://${GH_TOKEN}@github.com/benphelps/mkdocs-material-insiders.git - run: pip install mkdocs-redirects "mkdocs-material[imaging]" - - name: Set Git config - run: | - git config --global user.name "GitHub Action" - git config --global user.email "action@github.com" - - name: Sync gh-pages - run: | - git fetch origin gh-pages - git checkout gh-pages - git pull origin gh-pages - git checkout main - name: Docs Deploy run: MKINSIDERS=true mkdocs gh-deploy --force env: