-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.06 KB
/
Copy pathdocs-deploy.yml
File metadata and controls
50 lines (42 loc) · 1.06 KB
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: Deploy Documentation
on:
push:
branches:
- develop
paths:
- "docs/**"
- ".github/workflows/docs-deploy.yml"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: docs-deploy
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
working-directory: ./docs
run: bun install --frozen-lockfile
- name: Build documentation
working-directory: ./docs
env:
VITE_BASE: "/virga/"
VITE_GA_ID: ${{ secrets.VITE_GA_ID }}
VITE_COMMIT_HASH: ${{ github.sha }}
run: |
bun run docs:build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vitepress/dist