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"