Skip to content

Docs

Docs #71

Workflow file for this run

name: Docs
on:
workflow_dispatch: {}
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@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Get latest zap release
uses: robinraju/release-downloader@v1
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/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4