Skip to content

Commit

Permalink
Adds GitHub Action to publish documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissrogers committed Jan 28, 2020
1 parent 84923bf commit 1feddfa
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 581 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
release:
types:
- published
name: Documentation
jobs:
build:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1.1.0

- name: Build documentation
run: make docs-build

- name: Deploy
if: success()
uses: crazy-max/ghaction-github-pages@v1
with:
target_branch: gh-pages
build_dir: ./build/docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 3 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
on: ["push", "pull_request"]

name: Coverage

on: [push, pull_request]
name: Continuous Integration
jobs:

build:
name: Coverage
name: Test Coverage
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v2

- name: Use Node.js
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ docs: $(PKG)
@npm run storybook
docs-build: $(PKG)
@npm run build-storybook
docs-publish: $(PKG)
@npm run deploy-storybook

publish: lib clean node_modules
@npm publish --access public
Expand Down
Loading

0 comments on commit 1feddfa

Please sign in to comment.