CI: Fixing documentation's permissions

This commit is contained in:
Zoe Roux 2021-11-01 21:24:23 +01:00
parent 864ce8176d
commit 362ec948c9

View File

@ -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"