Skip to content

Commit

Permalink
refactor(gh-pages): Rename workflow to show it does more than apidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
vsaw committed Dec 21, 2020
1 parent fe96e5f commit 65a9512
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/apidoc.yml → .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
name: API Documentation
name: GitHub Page & API Documentation

on:
push:
branches:
- master
- 334-apidoc-on-build

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v1

- name: Generate API Documentation
run: npm run generateapidoc
run: mv .build/apidoc . # Move the apidoc build artifacts so the links in README.md work
run: npm run generateapidoc && mv .build/apidoc . # Move the apidoc build artifacts so the links in README.md work

- name: Deploy
- name: Deploy Page
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./
enable_jekyll: true

0 comments on commit 65a9512

Please sign in to comment.