Repository navigation
67 lines (56 loc) · 1.51 KB
/
Copy pathdeploy.yml
File metadata and controls
67 lines (56 loc) · 1.51 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Deploy website
# Builds the site (with docs synced from llm-d/llm-d) and deploys to GitHub Pages.
# Triggers:
# - push to main (site/tooling changes in this repo)
# - repository_dispatch "docs-updated" (fired by llm-d/llm-d on a docs merge)
# - nightly cron (fallback so upstream docs changes land even without a dispatch)
# - manual
on:
push:
branches: [main]
repository_dispatch:
types: [docs-updated]
schedule:
- cron: '17 1 * * *'
workflow_dispatch: {}
permissions:
contents: read
concurrency:
group: deploy-pages
cancel-in-progress: false
jobs:
build:
name: Build site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: ./.github/actions/setup-llmd-site
with:
npm-command: npm ci
go-test: 'false'
- name: Sync docs from llm-d/llm-d
run: ./bin/llmd-site sync main
- name: Build site
run: ./bin/llmd-site build
- uses: actions/configure-pages@v6
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v5
with:
include-hidden-files: true
path: build
deploy:
name: Deploy to GitHub Pages
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4