Skip to content

fix: improve way to detect scripts and added tests (#39) #16

fix: improve way to detect scripts and added tests (#39)

fix: improve way to detect scripts and added tests (#39) #16

Workflow file for this run

name: Documentation
on:
push:
branches:
- main # Set a branch to deploy
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- name: Build docs
run: npm run docs:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
publish_dir: ./docs