Skip to content

Commit

Permalink
🔧 Force orphan commit for clean gh-pages deployments
Browse files Browse the repository at this point in the history
The nightly deploys bloat the gh-pages branch with commits with huge
changes, because the youtube stats change a lot of numbers across the
site. I've tried cutting the diffs down by prettifying the files before
commit so the diffs are only for relevant info, but it's still in the
thousands.

This change should overwrite the branch data rather than adding to it.
I can't see any advantage of having a history of deploys.
  • Loading branch information
pouretrebelle committed Sep 18, 2023
1 parent 7d7d62c commit 4a76e86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
force_orphan: true
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
force_orphan: true

0 comments on commit 4a76e86

Please sign in to comment.