From da0c6d8136d15cd136410e0b07a3e9b0adf20425 Mon Sep 17 00:00:00 2001 From: Anar Kafkas <36949216+kafkas@users.noreply.github.com> Date: Tue, 26 Dec 2023 06:59:29 +0900 Subject: [PATCH] Push docs changes before deploying (#61) --- .github/workflows/publish-docs.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 0731d25..1f76b21 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -10,7 +10,7 @@ on: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: - contents: read + contents: write pages: write id-token: write @@ -35,6 +35,13 @@ jobs: run: npm install - name: Generate docs for current version run: npm run docs-generate + - name: Commit and Push Changes + run: | + git config --global user.email "kafkas@users.noreply.github.com" + git config --global user.name "Documentation Bot" + git add docs + git commit -m "Update docs" + git push - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: