From 978da93f8e3f4c256d805d53df509a00cc5c7cd9 Mon Sep 17 00:00:00 2001 From: Noritada Kobayashi Date: Mon, 26 Jun 2023 23:42:35 +0900 Subject: [PATCH] Fix file permissions before deployment to GitHub Pages See https://github.com/actions/deploy-pages/issues/188#issuecomment-1597613954 for more details. This will avoid timeouts like this: Getting Pages deployment status... Current status: deployment_perms_error Getting Pages deployment status... Current status: deployment_perms_error Error: Timeout reached, aborting! Error: Timeout reached, aborting! --- .github/workflows/pages.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 7c098ee..0d88c38 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -42,6 +42,14 @@ jobs: - name: Stage WASM run: mv web/dist dist/app + - name: Fix file permissions + shell: sh + run: | + chmod -c -R +rX dist | + while read line; do + echo "::warning title=Invalid file permissions automatically fixed::$line" + done + - name: Setup Pages uses: actions/configure-pages@v2 - name: Upload artifact