From 2eebaf61f9ef16a12b9e30e5c7618e91c1ff1558 Mon Sep 17 00:00:00 2001 From: Marco Kuidja Date: Fri, 25 Oct 2024 23:00:12 +0100 Subject: [PATCH] added contents write permissions to GIT_TOKEN Signed-off-by: Marco Kuidja --- .github/workflows/deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1bfe9c4..4ebb7d4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,9 @@ on: branches: - master # Trigger workflow only on pushes to the main branch +permissions: + contents: write + jobs: deploy: runs-on: ubuntu-latest @@ -26,8 +29,10 @@ jobs: pip install mkdocs-material # Build and deploy the site to GitHub Pages - - name: Deploy to GitHub Pages + - name: Deploy to GitHub Pages run: | # sed -i -E "s/your-username/${{github.repository_owner}}/g" ./README.md # sed -i -E "s/my-mkdocs-project/${{github.repository}}/g" ./README.md + git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/ADORSYS-GIS/mk-docs.git + mkdocs gh-deploy --force