From dab541a84db86985ba1d6108d40f35191a46e1dd Mon Sep 17 00:00:00 2001 From: Jack Franklin Date: Wed, 21 Jul 2021 14:59:12 +0100 Subject: [PATCH] chore(docs): setup placeholder workflow (#7434) --- .github/workflows/deploy-docs.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 1 + website/index.html | 9 +++++++++ 3 files changed, 41 insertions(+) create mode 100644 .github/workflows/deploy-docs.yml create mode 100644 website/index.html diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 00000000..40654755 --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -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/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 diff --git a/.gitignore b/.gitignore index 2b7b3cb6..64c5ce08 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ temp/ new-docs/ puppeteer.tgz docs-api-json/ +docs-dist/ diff --git a/website/index.html b/website/index.html new file mode 100644 index 00000000..bbfe0f83 --- /dev/null +++ b/website/index.html @@ -0,0 +1,9 @@ + + + + Puppeteer Documentation + + +

Hello world

+ +