Skip to content

Commit

Permalink
chore(docs): setup placeholder workflow (puppeteer#7434)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfranklin authored Jul 21, 2021
1 parent c65b10c commit dab541a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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/[email protected]
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ temp/
new-docs/
puppeteer.tgz
docs-api-json/
docs-dist/
9 changes: 9 additions & 0 deletions website/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Puppeteer Documentation</title>
</head>
<body>
<h1>Hello world</h1>
</body>
</html>

0 comments on commit dab541a

Please sign in to comment.