Skip to content

Commit

Permalink
Extend GitHub Actions workflow to also update gh-pages (#279)
Browse files Browse the repository at this point in the history
Issue: #278
  • Loading branch information
mathiasbynens committed Jul 19, 2022
1 parent e600e1c commit defdf87
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,28 @@ 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: Build site
working-directory: debugger-protocol-viewer
run: |
npm install
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 }}
clean: true
single-commit: false

0 comments on commit defdf87

Please sign in to comment.