Skip to content

Commit

Permalink
build: publish docs to GitHub Pages (#151)
Browse files Browse the repository at this point in the history
Uses the same GitHub Actions workflow as Electron Packager.
  • Loading branch information
malept authored Mar 19, 2020
1 parent b2f409f commit 9521f51
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 9521f51

Please sign in to comment.