Skip to content

Commit d924214

Browse files
authored
chore: add doc release workflow (#9)
1 parent a1a3ff3 commit d924214

File tree

6 files changed

+83
-14
lines changed

6 files changed

+83
-14
lines changed

.github/workflows/build_docs.yaml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Copyright 2025-present Alibaba Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "Publish Docs"
16+
17+
on:
18+
push:
19+
branches:
20+
- main
21+
paths:
22+
- 'apidoc/**'
23+
- 'docs/**'
24+
- 'src/**'
25+
- 'include/**'
26+
27+
concurrency:
28+
group: ${{ github.workflow }}-${{ github.ref }}
29+
cancel-in-progress: false
30+
31+
permissions:
32+
contents: write
33+
34+
jobs:
35+
docs:
36+
runs-on: ubuntu-24.04
37+
38+
steps:
39+
- uses: actions/[email protected]
40+
with:
41+
fetch-depth: 1
42+
43+
- uses: actions/setup-python@v6
44+
with:
45+
python-version: '3.x'
46+
47+
- name: Install dependencies
48+
run: |
49+
sudo apt-get update
50+
sudo apt-get install -y doxygen
51+
make install-deps
52+
53+
- name: Build API
54+
run: |
55+
cd ./apidoc
56+
doxygen
57+
cd -
58+
59+
- name: Build Docs
60+
run: |
61+
cd docs
62+
make html
63+
mkdir -p /tmp/site
64+
cp -r ./_build/html/* /tmp/site/
65+
cd -
66+
67+
- name: Deploy to gh-pages
68+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
69+
run: |
70+
git config --global user.name 'GitHub Actions'
71+
git config --global user.email '[email protected]'
72+
73+
git checkout --orphan gh-pages-tmp
74+
git rm --quiet -rf .
75+
cp -r /tmp/site/* .
76+
git add --all
77+
git commit -m "Publish docs from commit ${{ github.sha }}"
78+
git push -f origin gh-pages-tmp:gh-pages

.github/workflows/clang_test.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024-present Alibaba Inc.
1+
# Copyright 2025-present Alibaba Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -29,9 +29,6 @@ concurrency:
2929
permissions:
3030
contents: read
3131

32-
env:
33-
PAIMON_HOME: /tmp/paimon
34-
3532
jobs:
3633
ubuntu:
3734
name: AMD64 Ubuntu 24.04

.github/workflows/gcc_test.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ concurrency:
2929
permissions:
3030
contents: read
3131

32-
env:
33-
PAIMON_HOME: /tmp/paimon
34-
3532
jobs:
3633
ubuntu:
3734
name: AMD64 Ubuntu 24.04

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024-present Alibaba Inc.
1+
# Copyright 2025-present Alibaba Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

.github/workflows/test_with_sanitizer.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024-present Alibaba Inc.
1+
# Copyright 2025-present Alibaba Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -29,9 +29,6 @@ concurrency:
2929
permissions:
3030
contents: read
3131

32-
env:
33-
PAIMON_HOME: /tmp/paimon
34-
3532
jobs:
3633
ubuntu:
3734
name: AMD64 Ubuntu 24.04

docs/source/implementations/basic_concepts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
.. https://github.com/apache/paimon/blob/master/docs/content/concepts/basic-concepts.md
2020
2121
Basic Concepts
22-
==========================
22+
=========================
2323

2424
File Layouts
25-
--------------------------
25+
-------------------------
2626
All files of a table are stored under one base directory. Paimon files are
2727
organized in a layered style. The following image illustrates the file layout.
2828
Starting from a snapshot file, Paimon readers can recursively access all records

0 commit comments

Comments
 (0)