Skip to content

Commit

Permalink
Force push (with lease) the gh-pages
Browse files Browse the repository at this point in the history
Because we're not keeping the history of the gh-pages branch, we end up
with a new commit every time. Github refuses that we push that branch
because it doesn't match the history.
  • Loading branch information
achabotl committed Mar 6, 2024
1 parent 3585718 commit e8695dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ jobs:
git config user.email "[email protected]"
timestamp=$(date -u +%FT%T%z)
ghp-import -m "Generate Pelican site ${timestamp}" --no-history --branch gh-pages output
git push origin gh-pages
git push --force-with-lease origin gh-pages

0 comments on commit e8695dc

Please sign in to comment.