Skip to content

Commit e208343

Browse files
authored
Merge pull request #32 from sphinx-notes/upgrade-actions-deploy-v2
Prevent inappropriate file premissions break deployment
2 parents 4b0b09d + 00ee1f7 commit e208343

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

action.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,17 @@ runs:
101101
uses: actions/configure-pages@v2
102102
if: ${{ inputs.publish == 'true' }}
103103

104+
- name: Fix file permissions
105+
shell: sh
106+
if: runner.os == 'Linux'
107+
run: |
108+
chmod -c -R +rX "$INPUT_PATH" |
109+
while read line; do
110+
echo "::warning title=Invalid file permissions automatically fixed::$line"
111+
done
112+
env:
113+
INPUT_PATH: ${{ steps.build.outputs.artifact }}
114+
104115
- name: Upload artifact
105116
uses: actions/upload-pages-artifact@v1
106117
if: ${{ inputs.publish == 'true' }}
@@ -109,5 +120,5 @@ runs:
109120

110121
- id: deployment
111122
name: Deploy to GitHub Pages
112-
uses: actions/deploy-pages@v1
123+
uses: actions/deploy-pages@v2
113124
if: ${{ inputs.publish == 'true' }}

0 commit comments

Comments
 (0)