From a972ae12afbb56951e22ab858604896bef34c594 Mon Sep 17 00:00:00 2001 From: Cristian Lara Date: Tue, 4 Feb 2025 10:53:00 -0800 Subject: [PATCH] Creating a new version only tracks relevant files to git (#2726) Summary: Fixes an issue where unrelated files could get added to the `docusaurus-versions` branch. This broke GHA in the Ax repo since this was adding the results of running tutorials. Botorch doesn't run tutorials in CI but we still fix this to avoid other possible issues down the road. Same fix as the Ax counterpart: /~https://github.com/facebook/Ax/pull/3306 Pull Request resolved: /~https://github.com/pytorch/botorch/pull/2726 Reviewed By: saitcakmak Differential Revision: D69128162 Pulled By: CristianLara fbshipit-source-id: 95c798cf5c10a1fe2ed21b719a64afdf8d53ff0e --- .github/workflows/publish_website.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_website.yml b/.github/workflows/publish_website.yml index d6f66a90fd..cb986872e9 100644 --- a/.github/workflows/publish_website.yml +++ b/.github/workflows/publish_website.yml @@ -60,7 +60,7 @@ jobs: yarn yarn docusaurus docs:version ${{ inputs.new_version }} - git add --all + git add versioned_docs/ versioned_sidebars/ versions.json git commit -m "Create version ${{ inputs.new_version }} of site in Docusaurus" git push --force origin HEAD:docusaurus-versions - name: Build website