File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 7272 mv tmp_download_counts.json dist/download_counts.json
7373 - name : update partner resources
7474 run : python scripts/update_partner_resources.py
75- - name : add documentation files to preview
76- if : github.event_name == 'pull_request'
77- run : python scripts/download_documentation.py
7875 - name : Upload preview of updated partner resources
7976 if : github.event_name == 'pull_request'
8077 uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -132,17 +132,20 @@ jobs:
132132 run : python scripts/download_partner_test_summaries.py
133133 - name : prepare to deploy
134134 run : python scripts/prepare_to_deploy.py --branch ${{ github.head_ref || github.ref }}
135- - name : Upload preview
136- if : contains(inputs.deploy_to, 'preview')
137- uses : actions/upload-artifact@v2
138- with :
139- name : preview
140- path : dist/gh_pages_update
141- retention-days : 90
142135 - name : Deploy to gh-pages 🚀
143136 if : contains(inputs.deploy_to, 'gh-pages')
144137145138 with :
146139 branch : gh-pages
147140 clean : false # Keeping the old files
148141 folder : dist/gh_pages_update
142+ - name : add documentation files to preview
143+ if : contains(inputs.deploy_to, 'preview') # only download documentation for preview to ease review
144+ run : python scripts/download_documentation.py --folder dist/gh_pages_update
145+ - name : Upload preview
146+ if : contains(inputs.deploy_to, 'preview')
147+ uses : actions/upload-artifact@v2
148+ with :
149+ name : preview
150+ path : dist/gh_pages_update
151+ retention-days : 90
You can’t perform that action at this time.
0 commit comments