-
Notifications
You must be signed in to change notification settings - Fork 652
44 lines (41 loc) · 1.69 KB
/
publish-component-docs.yml
File metadata and controls
44 lines (41 loc) · 1.69 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
name: DevTools Component Documentation release
on:
schedule:
- cron: "0 7 * * *"
workflow_dispatch:
jobs:
build-docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout depot_tools
run: git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
- name: Add depot_tools to path
run: echo $(realpath depot_tools) >> $GITHUB_PATH
- name: Checkout repository
uses: actions/checkout@v6
with:
# We need to make sure that the parent directory of the checkout
# is correctly identified as a standalone checkout (see devtools_paths.py).
# Therefore name the parent directory 'devtools'.
path: devtools/devtools-frontend
# Since we didn't fetch but just checkout the repository content,
# we need to create an unmanaged gclient config.
- name: Create gclient config
run: gclient config --unmanaged https://chromium.googlesource.com/devtools/devtools-frontend
working-directory: devtools
- name: Sync dependencies
run: gclient sync
working-directory: devtools/devtools-frontend
- name: Generate build files (gn)
run: gn gen out/Default
working-directory: devtools/devtools-frontend
- name: Build DevTools Frontend (autoninja)
run: autoninja -C out/Default scripts/component_docs
working-directory: devtools/devtools-frontend
- name: GitHub Pages v3
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: devtools/devtools-frontend/out/Default/gen