You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bd50c37
Browse filesBrowse the repository at this point in the historyBrowse files
fix: keep .nojekyll and CNAME on redeploy (release 3.1.2) (#217)
* fix: keep .nojekyll and CNAME on redeploy
The cleanup hook from #207 removes every tracked file that is not in dist. gh-pages writes .nojekyll and CNAME into its clone, not into dist, so a redeploy removed the .nojekyll that gh-pages had just created and GitHub Pages ran Jekyll again. CNAME survived only because gh-pages' own remove step unstages non-dot files first.
The hook now keeps the files gh-pages generates for the active options. A leftover .nojekyll is still removed when nojekyll is disabled. CI deploys every Angular version twice and checks for .nojekyll.
* chore: release 3.1.2
* fix: address review findings for the redeploy fix
- CI checks the exact file name (git cat-file -e) and asserts that the second deploy created a commit
- generatedFiles is a required parameter of createCleanupBeforeAddHook
- unit tests for the hook with a mocked git
- comments describe the current behaviour
0 commit comments