Skip to content

Commit 190311b

Browse files
committed
fix preview download
1 parent 77460a4 commit 190311b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/auto_update_main.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ jobs:
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

.github/workflows/validate_resources.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff 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')
144137
uses: JamesIves/[email protected]
145138
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

0 commit comments

Comments
 (0)