Skip to content

Commit 4763743

Browse files
committed
fix: Don’t keep history on gh-pages branch
It get’s big and is fairly pointless. It’s not a great way to keep track of changes because it’s build output, not actual source. The source is in the main project. Long term we should move to not using the gh-pages branch, but deploying the web site as a build asset, but that requires reconfiguring the git project. This is a quick hack that solves the worst of it. See: https://github.com/peaceiris/actions-gh-pages?tab=readme-ov-file#%EF%B8%8F-force-orphan-force_orphan for details.
1 parent 5fb0c2e commit 4763743

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/node.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ jobs:
662662
with:
663663
github_token: ${{ secrets.GITHUB_TOKEN }}
664664
publish_dir: ./packages/documentation/build
665+
force_orphan: true
665666

666667
release-libs:
667668
name: Release Lib
@@ -773,7 +774,7 @@ jobs:
773774
- name: Prepare Environment
774775
run: |
775776
corepack enable
776-
777+
777778
yarn config set cacheFolder /home/runner/check-for-multiple-library-versions-cache
778779
yarn
779780
env:

0 commit comments

Comments
 (0)