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

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 3443f1edc workflows/main.yml: bump actions and fix build
3443f1edc is described below

commit 3443f1edca72de4d8e7703517cbbadce57f38003
Author: simbit18 <[email protected]>
AuthorDate: Fri Dec 19 10:25:17 2025 +0100

    workflows/main.yml: bump actions and fix build
    
    -fix
      Extension error:
     Could not import extension sphinx.builders.linkcheck (exception: No module 
named 'urllib3')
     make: *** [Makefile:48: html] Error 2
     Error: Process completed with exit code 2.
    
    -bump
     actions/checkout@v4 -> v6
     actions/upload-artifact@v4 -> v5
    
    Signed-off-by: simbit18 <[email protected]>
---
 .github/workflows/main.yml | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 9d3817402..d227611be 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -16,18 +16,18 @@ jobs:
     runs-on: ubuntu-latest
     steps:
     - name: Checkout Site
-      uses: actions/checkout@v4
+      uses: actions/checkout@v6
     - run: |
         git fetch --prune --unshallow
 
     - name: Checkout NuttX repo
-      uses: actions/checkout@v4
+      uses: actions/checkout@v6
       with:
         repository: apache/nuttx
         fetch-depth: 0
         ref: master
         path: nuttx
-    - uses: actions/setup-python@v5
+    - uses: actions/setup-python@v4
       with:
         python-version: '3.8'
     - name: Build docs
@@ -36,6 +36,9 @@ jobs:
         echo " Install Pipenv"
         echo "======================================================="
 
+        python3 -m venv .venv
+        source .venv/bin/activate
+        export PIPENV_VERBOSITY=-1
         pip3 install pipenv
 
         echo "======================================================="
@@ -90,8 +93,8 @@ jobs:
 
           echo " ====> PIPENV CLEANUP."
 
-          # Uninstall pipenv packages (cached packages are preserved).
-          pipenv uninstall --all
+          # Clear caches (pipenv, pip)
+          pipenv --clear install
 
         done
 
@@ -103,7 +106,7 @@ jobs:
     - name: Install Ruby tools
       run: |
         sudo apt-get -y install rubygems ruby-dev zlib1g-dev
-    
+
     - name: Build Site
       run: |
         export GEM_HOME=$HOME/.gem
@@ -115,7 +118,7 @@ jobs:
         ./publish.sh
 
     - name: Upload artifact of staged site
-      uses: actions/upload-artifact@v4
+      uses: actions/upload-artifact@v5
       with:
         name: static-site
         path: content

Reply via email to