From 271d330fb00539dbc359bfc58dcc250f5f1a58e7 Mon Sep 17 00:00:00 2001 From: Simon Clark <52653938+jsimonclark@users.noreply.github.com> Date: Mon, 6 May 2024 04:28:43 +0200 Subject: [PATCH] Update doc.yml fix permission issue --- .github/workflows/doc.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 9382824..d83bf93 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -75,9 +75,9 @@ jobs: if [ -d "context" ]; then echo "Context directory exists, copying context.json to $TAG" # Make sure the context directory exists in the version-specific directory - mkdir -p "sphinx/_build/html/version/$TAG/context" + sudo mkdir -p "sphinx/_build/html/version/$TAG/context" # Copy context.json to the tag-specific context directory - cp "context/context.json" "sphinx/_build/html/version/$TAG/context" + sudo cp "context/context.json" "sphinx/_build/html/version/$TAG/context" else echo "No context directory found in the source directory." fi