Skip to content

Commit

Permalink
Fix gh pages permissions, as instructed in actions/deploy-pages#188
Browse files Browse the repository at this point in the history
  • Loading branch information
DCNick3 committed Jun 21, 2023
1 parent bf020e1 commit 1966238
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/rustdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ jobs:
- name: Create dummy index.html
run: |
echo "<meta http-equiv=refresh content=0;url=shin/index.html>" > target/doc/index.html
# Set the right file permissions, based on https://github.com/actions/upload-pages-artifact#file-permissions.
- name: Fix file permissions
shell: sh
run: |
chmod -c -R +rX "target/doc" |
while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down

0 comments on commit 1966238

Please sign in to comment.