-
Notifications
You must be signed in to change notification settings - Fork 30
56 lines (48 loc) · 1.44 KB
/
generate_docs.yml
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
name: Community Extension Generate Docs
on:
workflow_dispatch:
inputs:
extension_name:
type: string
workflow_call:
inputs:
extension_name:
type: string
env:
GH_TOKEN: ${{ github.token }}
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: 'duckdb/community-extensions'
- name: Set up DuckDB
run: |
wget https://github.com/duckdb/duckdb/releases/download/v1.1.3/duckdb_cli-linux-amd64.zip
unzip duckdb_cli-linux-amd64.zip
chmod +x duckdb
- name: Fetch extensions
if: ${{ inputs.extension_name == '' }}
run: |
./scripts/fetch_extensions.sh ./duckdb
- uses: actions/download-artifact@v4
if: ${{ inputs.extension_name != '' }}
with:
name: ${{ inputs.extension_name }}-v1.1.3-extension-linux_amd64_gcc4
path: build/downloaded
- name: Install downloaded extension
if: ${{ inputs.extension_name != '' }}
env:
NAME: ${{ inputs.extension_name }}
run: |
./duckdb -c "SET extension_directory = 'build/extension_dir'; FORCE INSTALL 'build/downloaded/$NAME.duckdb_extension';"
- name: Generate docs
run: |
./scripts/generate_md.sh ./duckdb
zip -r build/generated_md.zip build/docs
- uses: actions/upload-artifact@v4
with:
name: generated_markdowns
path: |
build/generated_md.zip