-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (76 loc) · 2.01 KB
/
Copy pathpages.yml
File metadata and controls
95 lines (76 loc) · 2.01 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: DocFX Pages
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
name: Build DocFX site
runs-on: ubuntu-latest
timeout-minutes: 30
env:
PLAYWRIGHT_CHROMIUM_CHANNEL: chrome
permissions:
contents: read
pages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache-dependency-path: tests/web-a11y/package-lock.json
- name: Setup GitHub Pages
if: github.event_name != 'pull_request'
uses: actions/configure-pages@v5
- name: Install DocFX
shell: bash
run: dotnet tool install --global docfx
- name: Build DocFX site
shell: bash
run: |
set -euo pipefail
export PATH="$PATH:$HOME/.dotnet/tools"
docfx docfx.json
- name: Install web accessibility dependencies
working-directory: tests/web-a11y
run: npm ci
- name: Verify system Chrome
run: google-chrome --version
- name: Run DocFX accessibility smoke tests
working-directory: tests/web-a11y
run: npm test
- name: Upload GitHub Pages artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v4
with:
path: _site
deploy:
name: Deploy DocFX site
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4