-
Notifications
You must be signed in to change notification settings - Fork 15
50 lines (48 loc) · 1.14 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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