-
Notifications
You must be signed in to change notification settings - Fork 227
50 lines (43 loc) · 1.27 KB
/
update.yml
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
name: update
on:
schedule:
# Run daily at 04:20 UTC.
- cron: '20 4 * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# Fetching full history is required for the changelog script.
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Build
run: |
scripts/update-to-latest.sh
- name: Check out debugger-protocol-viewer
uses: actions/checkout@v2
with:
repository: ChromeDevTools/debugger-protocol-viewer
path: debugger-protocol-viewer
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Build site
working-directory: debugger-protocol-viewer
run: |
npm install
npm run prep
npm run build
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: debugger-protocol-viewer/devtools-protocol
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
single-commit: true