Skip to content

Commit

Permalink
Merge pull request #331 from ipdae/feature/publish-gh-pages
Browse files Browse the repository at this point in the history
Intoduce gh pages
  • Loading branch information
ipdae authored Feb 26, 2021
2 parents 7444646 + ca09f10 commit c374c8a
Show file tree
Hide file tree
Showing 2 changed files with 867 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy_gh_pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy gh pages
on:
push:
branches:
- development
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
submodules: recursive
node-version: '14'
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm install -g @2fd/graphdoc
- name: Build
run: graphdoc -s schema.graphql -o doc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc
Loading

0 comments on commit c374c8a

Please sign in to comment.