Skip to content

Commit

Permalink
ci: add safe.directory config to prevent upload issues
Browse files Browse the repository at this point in the history
Added `git config --local --add safe.directory /github/workspace/docs/build/html` to prevent issues while uploading the documentation to GitHub Pages.

- Updated CI/CD pipeline script to include the safe.directory configuration.
- Ensured smooth uploading of the generated HTML documentation.

This change addresses potential permission issues during the documentation upload process, ensuring a seamless deployment to GitHub Pages.
  • Loading branch information
kennylajara authored Jun 25, 2024
1 parent 79ac199 commit 89884a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/host_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
git add -A
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git config --local --add safe.directory /github/workspace/docs/build/html
git commit -m 'deploy'
- name: Force push to destination branch
Expand Down

0 comments on commit 89884a7

Please sign in to comment.