From a2b6b6d958ed5f0c68a33a8c319d0156a0372714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Gr=C3=B3dek?= <128714159+piotr-grodek-dsai@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:37:59 +0100 Subject: [PATCH] Update documentation.yml Fix deployment step with missing permission --- .../.github/workflows/documentation.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/{{ cookiecutter.repo_name }}/.github/workflows/documentation.yml b/{{ cookiecutter.repo_name }}/.github/workflows/documentation.yml index 1c8bffd..9ecf526 100644 --- a/{{ cookiecutter.repo_name }}/.github/workflows/documentation.yml +++ b/{{ cookiecutter.repo_name }}/.github/workflows/documentation.yml @@ -5,6 +5,8 @@ on: branches: [main, master] jobs: + permissions: + contents: write pages: runs-on: ubuntu-latest container: python:3.11 @@ -28,9 +30,8 @@ jobs: - name: Build docs run: ./build_docs.sh - # Uncomment below to deploy to GitHub Pages - # - name: Deploy - # uses: peaceiris/actions-gh-pages@v3 - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # publish_dir: ./public \ No newline at end of file + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public