Skip to content

Commit

Permalink
[CI] Allow empty git commit when deploying docs to gh-pages (ukri-exc…
Browse files Browse the repository at this point in the history
…alibur#309)

I believe with mkdocs
[v1.6.0](https://github.com/mkdocs/mkdocs/releases/tag/1.6.0) we may have to
allow empty commits, because the compressed sitemap shouldn't change anymore on
every rebuild.
  • Loading branch information
giordano authored Apr 25, 2024
1 parent b53e660 commit 1866a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
fi
cp -fr ../site/* .
git add .
git commit -m "${COMMIT_MESSAGE}"
git commit --allow-empty -m "${COMMIT_MESSAGE}"
git push origin gh-pages
- name: Create custom status for pull requests
Expand Down

0 comments on commit 1866a37

Please sign in to comment.