Skip to content

Commit d58c64c

Browse files
committed
Update pages.yml
1 parent fa22fac commit d58c64c

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
paths:
88
- "docs/website/**"
99
- ".github/workflows/pages.yml"
10+
pull_request:
11+
paths:
12+
- "docs/website/**"
13+
- ".github/workflows/pages.yml"
1014
workflow_dispatch:
1115

1216
permissions:
@@ -41,6 +45,7 @@ jobs:
4145
run: |
4246
node --check docs/website/app.js
4347
test -f docs/website/index.html
48+
test -f docs/website/download.html
4449
test -f docs/website/styles.css
4550
test -f docs/website/web_assets/media/favicon.ico
4651
test -f docs/website/web_assets/media/asrfacet-rb-site-preview.png
@@ -62,6 +67,20 @@ jobs:
6267
grep -q 'app.js?v=' "${page}"
6368
done
6469
70+
- name: Validate download center wiring
71+
shell: bash
72+
run: |
73+
grep -q 'data-page="download.html"' docs/website/download.html
74+
grep -q 'id="download-home"' docs/website/download.html
75+
grep -q 'id="download-scripts"' docs/website/download.html
76+
grep -q 'id="download-usage"' docs/website/download.html
77+
grep -q 'id="download-paths"' docs/website/download.html
78+
grep -q 'web_assets/installers/asrfacet-rb-installer-linux.sh' docs/website/download.html
79+
grep -q 'web_assets/installers/asrfacet-rb-installer-macos.sh' docs/website/download.html
80+
grep -q 'web_assets/installers/asrfacet-rb-installer-windows.ps1' docs/website/download.html
81+
grep -q 'web_assets/installers/asrfacet-rb-installer-windows.cmd' docs/website/download.html
82+
grep -q '"download.html": { title: "Download Center"' docs/website/app.js
83+
6584
- name: Upload static site artifact
6685
uses: actions/upload-pages-artifact@v3
6786
with:

0 commit comments

Comments
 (0)