-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 988 Bytes
/
docs.yml
File metadata and controls
44 lines (37 loc) · 988 Bytes
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
name: docs
on:
push:
tags:
- "v*" # CLI/client release
- "server/v*" # server prod release
workflow_dispatch:
inputs:
ref:
description: "Git ref to publish docs from (tag, branch, or SHA)"
required: false
default: "main"
type: string
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref }}
- name: Install dependencies
run: ./bun install --frozen-lockfile
- name: Build docs site
run: ./bun run docs:build
- uses: actions/upload-pages-artifact@v4
with:
path: packages/docs-site/out
- id: deploy
uses: actions/deploy-pages@v5