You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by ke...@apache.org on 2024/11/22 16:39:21 UTC

(iceberg-python) branch main updated: check mkdocs build strict in CI (#1360)

This is an automated email from the ASF dual-hosted git repository.

kevinjqliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git


The following commit(s) were added to refs/heads/main by this push:
     new 63169004 check mkdocs build strict in CI (#1360)
63169004 is described below

commit 63169004facb053d3ac3725388411ee7a05c4156
Author: Kevin Liu <ke...@users.noreply.github.com>
AuthorDate: Fri Nov 22 11:39:17 2024 -0500

    check mkdocs build strict in CI (#1360)
    
    * add ci to release docs
    
    * run mkdocs in ci
    
    * use 3.12
---
 .github/workflows/python-ci-docs.yml               | 25 +++++++---------------
 ...{python-ci-docs.yml => python-release-docs.yml} |  2 +-
 2 files changed, 9 insertions(+), 18 deletions(-)

diff --git a/.github/workflows/python-ci-docs.yml b/.github/workflows/python-ci-docs.yml
index 0ee8b28c..19c4bb6a 100644
--- a/.github/workflows/python-ci-docs.yml
+++ b/.github/workflows/python-ci-docs.yml
@@ -17,9 +17,14 @@
 # under the License.
 #
 
-name: "Python Docs"
+name: "Python CI Docs"
+
 on:
-  workflow_dispatch:
+  push:
+    branches:
+      - 'main'
+  pull_request:
+
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.ref }}
@@ -33,24 +38,10 @@ jobs:
       - uses: actions/checkout@v4
       - uses: actions/setup-python@v5
         with:
-          python-version: ${{ matrix.python }}
+          python-version: 3.12
       - name: Install
         working-directory: ./mkdocs
         run: pip install -r requirements.txt
       - name: Build
         working-directory: ./mkdocs
         run: mkdocs build --strict
-      - name: Copy
-        working-directory: ./mkdocs
-        run: mv ./site /tmp/site
-      - name: Push changes to gh-pages branch
-        run: |
-          git checkout --orphan gh-pages-tmp
-          git rm --quiet -rf .
-          cp -r /tmp/site/* .
-          git config --global user.name 'GitHub Actions'
-          git config --global user.email 'actions@github.com'
-          echo "py.iceberg.apache.org" > CNAME
-          git add --all
-          git commit -m 'Publish Python docs'
-          git push -f origin gh-pages-tmp:gh-pages || true
diff --git a/.github/workflows/python-ci-docs.yml b/.github/workflows/python-release-docs.yml
similarity index 98%
copy from .github/workflows/python-ci-docs.yml
copy to .github/workflows/python-release-docs.yml
index 0ee8b28c..2f1b1155 100644
--- a/.github/workflows/python-ci-docs.yml
+++ b/.github/workflows/python-release-docs.yml
@@ -17,7 +17,7 @@
 # under the License.
 #
 
-name: "Python Docs"
+name: "Release Docs"
 on:
   workflow_dispatch: