From 212f5ad1dcf4c114cb5d18a161a3e68ab79deb63 Mon Sep 17 00:00:00 2001 From: Yukai Chou Date: Fri, 17 May 2024 21:58:18 +0800 Subject: [PATCH] Fix missing permissions actions/jekyll-build-pages is a Docker action hence is run by the default Docker user (root). So we need sudo in copying into the directory created by Jekyll. See actions/jekyll-build-pages#101. https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user --- .github/workflows/jekyll-gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index 3243422..fd39aad 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -47,7 +47,7 @@ jobs: - name: Documentation run: l3build doc -q -H --show-log-on-error - name: Copy PDF - run: pwd; ls; cp *.pdf ./_site/ + run: sudo cp *.pdf ./_site/ - name: Upload artifact uses: actions/upload-pages-artifact@v3