Skip to content

Docs: Add API documentation for functions (#142) #60

Docs: Add API documentation for functions (#142)

Docs: Add API documentation for functions (#142) #60

Workflow file for this run

name: Docs
on:
workflow_dispatch: {}
push:
branches:
- '0.6.x'
tags-ignore:
- "**"
paths:
- docs/**
release:
types:
- published
jobs:
deploy:
name: Deploy Docs
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
- name: Get latest zap release
uses: robinraju/[email protected]
with:
latest: true
fileName: "zap-*-wasm.tgz"
out-file-path: "staging"
- name: Extract file
run: tar -xvzf staging/zap-*-wasm.tgz -C zap
- name: Install Dependencies
run: yarn install --frozen-lockfile --force
- name: Build
run: yarn docs:build
- uses: actions/configure-pages@v2
- uses: actions/upload-pages-artifact@v1
with:
path: docs/.vitepress/dist
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1