Skip to content

Commit

Permalink
ci: configure git safe.directory at system level
Browse files Browse the repository at this point in the history
Added `git config --system --add safe.directory /github/workspace/docs/build/html` to the CI/CD pipeline.

- Configured git to recognize the documentation build directory as safe at the system level.
- Prevented potential permission issues during the upload process to GitHub Pages.

This change ensures smooth and error-free deployment of the WML documentation to GitHub Pages by addressing directory safety concerns.
  • Loading branch information
kennylajara authored Jun 25, 2024
1 parent 126babf commit 1505350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/host_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
git add -A
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git config --global --add safe.directory /github/workspace/docs/build/html
git config --system --add safe.directory /github/workspace/docs/build/html
git commit -m 'deploy'
- name: Force push to destination branch
Expand Down

0 comments on commit 1505350

Please sign in to comment.