Skip to content

Merge pull request #32 from mycognosist/update-website-links #20

Merge pull request #32 from mycognosist/update-website-links

Merge pull request #32 from mycognosist/update-website-links #20

Workflow file for this run

name: pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup node
# This action also handles dependency caching for us
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: Restore from npm cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-deploy-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Build documentation page
run: npm run docs
- name: Deploy website
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs