Repository navigation
43 lines (40 loc) · 1.56 KB
/
Copy pathvalidate-pages.yml
File metadata and controls
43 lines (40 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Validate GitHub Pages build
on:
pull_request:
push:
branches: [upgrade/minimal-mistakes-4.28.1, design/homepage-preview, navigation/topic-hub, content/seo-positioning, content/technical-freshness, content/string-encryption-article, migration/singularvector]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build using GitHub Pages tooling
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Check theme and monetization integration
shell: bash
run: |
test -s _site/index.html
grep -q 'Minimal Mistakes Jekyll Theme 4.28.1' _site/index.html
grep -q 'ca-pub-8799681346916578' _site/index.html
cmp ads.txt _site/ads.txt
test -s _site/feed.xml
test -s _site/sitemap.xml
for route in articles topics search topics/powershell topics/linux topics/identity topics/infrastructure topics/python topics/git; do
test -s "_site/$route/index.html"
done
test "$(grep -o 'id="search"' _site/search/index.html | wc -l)" -eq 1
test "$(grep -o 'id="results"' _site/search/index.html | wc -l)" -eq 1
- name: Check SEO metadata and archive links
run: python3 scripts/check-content-seo.py
- name: Retain generated site for inspection
uses: actions/upload-artifact@v4
with:
name: validated-jekyll-site
path: _site/
retention-days: 7