Skip to content

Commit c9c207e

Browse files
committed
Extend GitHub Actions workflow to also update gh-pages (#279)
Issue: #278
1 parent e600e1c commit c9c207e

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/update.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,27 @@ jobs:
2323
with:
2424
node-version-file: '.nvmrc'
2525

26-
- name: Update
26+
- name: Build
2727
run: |
2828
scripts/update-to-latest.sh
29+
30+
- name: Check out debugger-protocol-viewer
31+
uses: actions/checkout@v2
32+
with:
33+
repository: ChromeDevTools/debugger-protocol-viewer
34+
path: debugger-protocol-viewer
35+
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
36+
37+
- name: Build site
38+
working-directory: debugger-protocol-viewer
39+
run: |
40+
npm install
41+
npm run build
42+
43+
- name: Deploy to gh-pages
44+
uses: JamesIves/github-pages-deploy-action@v4
45+
with:
46+
branch: gh-pages
47+
folder: debugger-protocol-viewer/devtools-protocol
48+
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
49+
single-commit: true

0 commit comments

Comments
 (0)