From 9521f5140522fc11cea714876b2a57f15f2129a8 Mon Sep 17 00:00:00 2001 From: Mark Lee Date: Thu, 19 Mar 2020 09:27:57 -0700 Subject: [PATCH] build: publish docs to GitHub Pages (#151) Uses the same GitHub Actions workflow as Electron Packager. --- .github/workflows/docs.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..48b37444a --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,27 @@ +name: Publish documentation + +on: + push: + branches: + - master + tags: + - v[0-9]+.[0-9]+.[0-9]+* + +jobs: + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Fetch all git branches + run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* + - uses: actions/setup-node@v1 + with: + node-version: 12.x + - run: yarn + - run: yarn build:docs + - uses: docker://malept/gha-gh-pages:1.0.2 + with: + showUnderscoreFiles: true + versionDocs: true + env: + GH_PAGES_SSH_DEPLOY_KEY: ${{ secrets.GH_PAGES_SSH_DEPLOY_KEY }}