From 10c21b3d5a378121884f34eca8d215c249349f78 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Tue, 19 Jul 2022 13:17:47 +0200 Subject: [PATCH] Extend GitHub Actions workflow to also update gh-pages (#279) Issue: #278 --- .github/workflows/update.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index dcd233b70d..b6425edec7 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -23,6 +23,21 @@ jobs: with: node-version-file: '.nvmrc' - - name: Update + - 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: Update gh-pages + working-directory: debugger-protocol-viewer + run: | + ls -lsa + npm install + npm run build + npm run deploy