mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
32 lines
813 B
YAML
32 lines
813 B
YAML
|
name: Build and deploy documentation
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
|
||
|
jobs:
|
||
|
build-and-deploy:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v2
|
||
|
- name: Build
|
||
|
run: |
|
||
|
npm install
|
||
|
# This will be replaced with the actual documentation builder once it's
|
||
|
# configured
|
||
|
mkdir -p docs-dist/
|
||
|
cp website/index.html docs-dist/index.html
|
||
|
- name: Set up SSH
|
||
|
uses: webfactory/ssh-agent@v0.4.1
|
||
|
with:
|
||
|
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||
|
- name: Deploy
|
||
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||
|
with:
|
||
|
SSH: true
|
||
|
SINGLE_COMMIT: true
|
||
|
BASE_BRANCH: main
|
||
|
BRANCH: gh-pages
|
||
|
FOLDER: docs-dist
|