From 362ec948c98a2263022583826672feb5ea67e937 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 1 Nov 2021 21:24:23 +0100 Subject: [PATCH] CI: Fixing documentation's permissions --- .github/workflows/documentation.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index ec7560a8..aaa461fe 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -17,14 +17,15 @@ jobs: - name: Update the docs run: | cd docs/_site - git config --global user.email "${GITHUB_ACTOR}@github.com"; - git config --global user.name "${GITHUB_ACTOR}"; + sudo chown $(whoami):$(whoami) . -R + git config --global user.email "${GITHUB_ACTOR}@github.com" + git config --global user.name "${GITHUB_ACTOR}" git init - git add -A; - git commit -m "Deploying the documentation"; - git remote add origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@${GITHUB_REPO}; - git checkout -b Documentation - git push --force origin Documentation; + git add -A + git commit -m "Deploying the documentation" + git remote add origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@${GITHUB_REPO} + git checkout -b gh-pages + git push --force origin gh-pages env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_REPO: "github.com/AnonymusRaccoon/Kyoo"