-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (38 loc) · 1.24 KB
/
docs.yaml
File metadata and controls
41 lines (38 loc) · 1.24 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
name: Docs
on:
push:
branches:
- gh-pages
tags:
- "v*"
workflow_dispatch:
env:
duckdb-version: "1.5.1"
jobs:
deploy:
name: Build
runs-on: ubuntu-latest
permissions:
contents: write
env:
DUCKDB_LIB_DIR: ${{ github.workspace }}/opt/duckdb
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0 # to get gh-pages
submodules: true
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
- name: Install libduckdb
run: |
wget https://github.com/duckdb/duckdb/releases/download/v${{ env.duckdb-version }}/libduckdb-linux-amd64.zip
mkdir -p ${{ github.workspace }}/opt/duckdb
unzip libduckdb-linux-amd64.zip -d ${{ github.workspace }}/opt/duckdb
- name: Sync
run: uv sync --all-extras
- name: Deploy
if: github.event_name == 'push' && startsWith(github.ref_name, 'v')
run: uv run mike deploy ${{ github.ref_name }} latest --push --update-aliases
env:
GIT_COMMITTER_NAME: ci-bot
GIT_COMMITTER_EMAIL: ci-bot@example.com