File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -39,17 +39,16 @@ jobs:
3939 uses : actions/cache@v3
4040 with :
4141 path : ~/.cache/pip
42- key : ${{ runner.os }}-deploy-docs-pip-${{ hashFiles('requirements/app/*.txt') }}
43- restore-keys : |
44- ${{ runner.os }}-deploy-docs-pip-
42+ key : deploy-docs-pip-${{ hashFiles('requirements/**/*.txt') }}
43+ restore-keys : deploy-docs-pip-
4544
4645 - name : Install package & dependencies
4746 env :
4847 FREEZE_REQUIREMENTS : 1
48+ TORCH_URL : " https://download.pytorch.org/whl/cpu/torch_stable.html"
4949 run : |
5050 pip --version
51- pip install -e . --quiet -r requirements/app/docs.txt \
52- -f https://download.pytorch.org/whl/cpu/torch_stable.html -f pypi
51+ pip install -e . -r requirements/app/docs.txt -f ${TORCH_URL} -f pypi
5352 pip list
5453
5554 - name : Make Documentation
@@ -70,12 +69,14 @@ jobs:
7069 single-commit : true # you'd prefer to have a single commit on the deployment branch instead of full history
7170 if : github.event_name == 'push' && github.ref == 'refs/heads/master'
7271
73- - name : ' Authenticate to Google Cloud'
72+ - name : Authenticate to Google Cloud
73+ if : github.event_name == 'push'
7474 uses : google-github-actions/auth@v1
7575 with :
7676 credentials_json : ${{ secrets.GCS_SA_KEY }}
7777
7878 - name : Setup gcloud
79+ if : github.event_name == 'push'
7980 uses : google-github-actions/setup-gcloud@v1
8081 with :
8182 project_id : ${{ secrets.GCS_PROJECT }}
Original file line number Diff line number Diff line change 1414 dict (torch = "1.10.2" , torchvision = "0.11.3" ),
1515 dict (torch = "1.10.1" , torchvision = "0.11.2" ),
1616 dict (torch = "1.10.0" , torchvision = "0.11.1" ),
17- dict (torch = "1.9.1" , torchvision = "0.10.1" ),
18- dict (torch = "1.9.0" , torchvision = "0.10.0" ),
1917]
2018
2119
You can’t perform that action at this time.
0 commit comments