Skip to content

Commit 25ed85d

Browse files
Ailing Zhangsoumith
authored andcommitted
update hub upon build_deploy
1 parent 21aced8 commit 25ed85d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ include-yarn-deps:
3333
cp node_modules/bootstrap/dist/js/bootstrap.min.js $(VENDOR_DIR)
3434
cp node_modules/anchor-js/anchor.min.js $(VENDOR_DIR)
3535

36+
update-hub:
37+
git submodule update --remote _hub
38+
cp _hub/images/* assets/images
39+
3640
build: install include-yarn-deps
3741
$(JEKYLL) build --config _config.yml
3842

scripts/deploy-site.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,8 @@ else
2929
git checkout --orphan master
3030
fi
3131

32-
# Update submodule pytorch/hub to the latest master branch
33-
# Then copy over images to assets/images
34-
git submodule update --remote _hub
35-
cp _hub/images/* assets/images
36-
3732
cd "../"
33+
make update-hub
3834
make build_deploy
3935
cd master-branch
4036

0 commit comments

Comments
 (0)