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 978da93
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
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 978da93

Please sign in to comment.