Skip to content

Commit

Permalink
Fix file permissions before deployment to GitHub Pages
Browse files Browse the repository at this point in the history
See actions/deploy-pages#188 (comment)
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!
  • Loading branch information
noritada committed Jun 26, 2023
1 parent bd8ef4a commit 428f48c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy the latest documentation and WASM app to GitHub Pages
on:
push:
branches: [ master ]
branches: [master]

workflow_dispatch:

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 428f48c

Please sign in to comment.