Skip to content

Commit

Permalink
Create gh_pages_doc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Callidon authored Apr 23, 2021
1 parent d754ca9 commit 3b5a43b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/gh_pages_doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 📘 Publish gh-pages doc
on:
push:
branches: [ master ]
jobs:
publish_doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 15.x
uses: actions/setup-node@v1
with:
node-version: "15.x"
- name: Install package
run: npm install
- name: Build TS
run: npm run build
- name: Generate documentation
run: npm run doc
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs

0 comments on commit 3b5a43b

Please sign in to comment.