Add Github release updater #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Hook Docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
hookdocs: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 14 | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: npm install, and build docs | |
run: | | |
npm install | |
npm run build:docs | |
- name: Deploy to GH Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_dir: './docs' | |
github_token: ${{ secrets.GITHUB_TOKEN }} |