-
Notifications
You must be signed in to change notification settings - Fork 648
88 lines (85 loc) · 3.34 KB
/
docs-deploy.yml
File metadata and controls
88 lines (85 loc) · 3.34 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: publish-site
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Checkout lance-spark
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: lancedb/lance-spark
path: lance-spark
- name: Checkout lance-namespace
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: lancedb/lance-namespace
path: lance-namespace
- name: Checkout lance-ray
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: lancedb/lance-ray
path: lance-ray
- name: Checkout lance-huggingface
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: lance-format/lance-huggingface
path: lance-huggingface
- name: Checkout lance-namespace-impls
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: lance-format/lance-namespace-impls
path: lance-namespace-impls
- name: Checkout lance-duckdb
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: lance-format/lance-duckdb
path: lance-duckdb
- name: Checkout lance-trino
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: lance-format/lance-trino
path: lance-trino
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: "Set up Python"
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version-file: "docs/pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
with:
enable-cache: true
- name: Assemble full docs website
env:
LANCE_NAMESPACE_REPO: ${{ github.workspace }}/lance-namespace
LANCE_NAMESPACE_IMPLS_REPO: ${{ github.workspace }}/lance-namespace-impls
LANCE_SPARK_REPO: ${{ github.workspace }}/lance-spark
LANCE_RAY_REPO: ${{ github.workspace }}/lance-ray
LANCE_TRINO_REPO: ${{ github.workspace }}/lance-trino
LANCE_DUCKDB_REPO: ${{ github.workspace }}/lance-duckdb
LANCE_HUGGINGFACE_REPO: ${{ github.workspace }}/lance-huggingface
run: |
docs/make-full-website.sh
- name: Deploy
working-directory: docs
run: uv run mkdocs gh-deploy --force