Skip to content

Commit bd8ea07

Browse files
Balandatfacebook-github-bot
authored andcommitted
Do not check for changed files in website auto-deploy (#278)
Summary: Something is not working properly with the current setup, deployment is skipped even though the site changed. Since we now auto-deploy once a day, there is no harm in re-deploying, so let's remove the skip condition altogether. Pull Request resolved: #278 Test Plan: External CI Reviewed By: sdaulton Differential Revision: D17576772 Pulled By: Balandat fbshipit-source-id: 3ffc2297f666061b46d2c461c821bc6437de4aa2
1 parent f6de438 commit bd8ea07

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,8 @@ commands:
7070
steps:
7171
- run:
7272
name: "Deploy website to GitHub Pages"
73-
# TODO: make docusaurus installation above conditional on there being relevant changes (no need to install if there are none)
7473
command: |
75-
if ! git diff-tree --no-commit-id --name-only -r HEAD | grep -E "(^docs\/.*)|(^website\/.*)|(^scripts\/.*)|(^sphinx\/.*)|(^tutorials\/.*)"; then
76-
echo "Skipping deploy. No relevant website files have changed"
77-
elif [[ $CIRCLE_PROJECT_USERNAME == "pytorch" && -z $CI_PULL_REQUEST && -z $CIRCLE_PR_USERNAME ]]; then
74+
if [[ $CIRCLE_PROJECT_USERNAME == "pytorch" && -z $CI_PULL_REQUEST && -z $CIRCLE_PR_USERNAME ]]; then
7875
./scripts/publish_site.sh -d
7976
else
8077
echo "Skipping deploy."

0 commit comments

Comments
 (0)