Before tarring site, set file read permissions

Pages DFS needs the "group read" permission set on any file it serves,
so add read permission before tarring to prevent unreadable files from
being deployed.

This only applies to files that are built on an actions runner, not
files that are cloned from a git repoitory, because git's permissions
are limited to the equivalents of chmod 644 and 755.
This commit is contained in:
Jess Bees
2022-11-07 12:58:14 -05:00
parent e02d70a4e3
commit 3cb2c0f93b

View File

@@ -17,6 +17,7 @@ runs:
shell: sh shell: sh
if: runner.os == 'Linux' if: runner.os == 'Linux'
run: | run: |
chmod -R +r .
tar \ tar \
--dereference --hard-dereference \ --dereference --hard-dereference \
--directory "$INPUT_PATH" \ --directory "$INPUT_PATH" \
@@ -32,6 +33,7 @@ runs:
shell: sh shell: sh
if: runner.os == 'macOS' if: runner.os == 'macOS'
run: | run: |
chmod -R +r .
gtar \ gtar \
--dereference --hard-dereference \ --dereference --hard-dereference \
--directory "$INPUT_PATH" \ --directory "$INPUT_PATH" \