-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (58 loc) · 1.68 KB
/
Copy pathpages.yml
File metadata and controls
66 lines (58 loc) · 1.68 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Deploy GitHub Pages
on:
push:
branches: [ master ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: github-pages
cancel-in-progress: false
jobs:
build:
name: Build static Pages artifact
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout master branch
uses: actions/checkout@v6
- name: Verify landing page source
shell: bash
run: |
set -euo pipefail
test -f docs/index.html
test -f docs/styles.css
test -f docs/app.js
test -f docs/site.webmanifest
test -f docs/og-preview.svg
test -f docs/assets/ptp-lab-demo.gif
test -f docs/assets/ptp-lab-dashboard.webp
test -f docs/assets/ptp-lab-dashboard.png
test -f docs/robots.txt
test -f docs/sitemap.xml
grep -q "Process Bus Timing Lab" docs/index.html
grep -q "SoftwareApplication" docs/index.html
grep -q "Sitemap:" docs/robots.txt
echo "Pages source preview:"
find docs -maxdepth 2 -type f | sort | sed 's#^docs/##' | head -120
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./docs
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
timeout-minutes: 10
needs: build
if: github.ref == 'refs/heads/master'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy artifact
id: deployment
uses: actions/deploy-pages@v4