From e7a0ddfcfc00593ebbc07a581aec872c18b22002 Mon Sep 17 00:00:00 2001 From: Robert Grandl Date: Wed, 21 Jun 2023 12:29:34 -0700 Subject: [PATCH] Fix invalid permissions (#410) The website deployment action has been failing lately. Looking at the issue, it seems to be related to https://github.com/actions/deploy-pages/issues/188 that is due to https://github.com/actions/upload-pages-artifact#file-permissions. --- .github/workflows/github-pages.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index a9b58d014..d979651fd 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -67,6 +67,14 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v3 + # Set the right file permissions, based on https://github.com/actions/upload-pages-artifact#file-permissions. + - shell: sh + run: | + chmod -c -R +rX "website/public" | + while read line; do + echo "::warning title=Invalid file permissions automatically fixed::$line" + done + - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: