-
Notifications
You must be signed in to change notification settings - Fork 139
85 lines (80 loc) · 2.69 KB
/
docs.yml
File metadata and controls
85 lines (80 loc) · 2.69 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
name: Vortex Docs
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
branches: [develop]
workflow_dispatch: { }
permissions:
# Weirdly, we need write permissions to see draft releases.
# See https://github.com/cli/cli/issues/3037
contents: write
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-rust
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
enable-sccache: "false"
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: "17"
distribution: "temurin"
- name: Install uv
uses: spiraldb/actions/.github/actions/setup-uv@0.18.5
with:
sync: false
prune-cache: false
- name: Generate changelog from GitHub releases
run: uv run --no-project docs/generate_changelog.py
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install Doxygen
uses: ssciwr/doxygen-install@v1
- name: Generate Javadoc for Java projects
run: |
cd java
./gradlew javadoc -x makeTestFiles
- name: Copy Javadoc to docs directory
run: |
mkdir -p docs/_static/vortex-jni
mkdir -p docs/_static/vortex-spark
cp -r java/vortex-jni/build/docs/javadoc/* docs/_static/vortex-jni/
cp -r java/vortex-spark/build/docs/javadoc/* docs/_static/vortex-spark/
- name: build Python and Rust docs
run: |
uv run --all-packages make -C docs html
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v4
with:
path: docs/_build/html
deploy:
permissions:
deployments: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
timeout-minutes: 120
needs: build
steps:
# Note, since we provide the job with a CloudFlare scoped API token, we run it in a separate job that doesn't
# execute any repository code.
- uses: actions/download-artifact@v7
with:
name: github-pages
- name: Extract Pages Artifact
run: mkdir docs && tar -xvf artifact.tar -C docs
shell: bash
- name: Upload artifacts to CloudFlare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy docs/ --project-name=vortex-docs --branch=${{ github.head_ref || github.ref_name }}