Skip to content

Commit

Permalink
[CI] Use "force_orphan" option of GH action peaceiris/actions-gh-page…
Browse files Browse the repository at this point in the history
…s@v3

With this change, the API documentation that we generate as part of our CI
will overwrite the `gh-pages` branch, only keeping the latest generated
documentation. This will reduce the repository size (when cloned, from
close to 3GB to ~150M.

As a consequence, we will lose the history of API documentation. It will
still be possible to manually generate it locally (yarn docs).

Fixes #11625

Signed-off-by: Marc Dumais <[email protected]>
  • Loading branch information
marcdumais-work committed Sep 13, 2022
1 parent 064553d commit c068f79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages
force_orphan: true # will only keep latest commit on branch gh-pages

- name: Publish NPM
uses: nick-invision/retry@v2
Expand Down

0 comments on commit c068f79

Please sign in to comment.