You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/11/26 20:25:32 UTC

[GitHub] [incubator-nuttx-website] btashton commented on a change in pull request #37: support publishing versioned docs

btashton commented on a change in pull request #37:
URL: https://github.com/apache/incubator-nuttx-website/pull/37#discussion_r531214120



##########
File path: .github/workflows/main.yml
##########
@@ -15,33 +15,38 @@ jobs:
   build:
     runs-on: ubuntu-latest
     steps:
-    - uses: actions/checkout@v2
-    - run: |
-        git fetch --prune --unshallow
-
-    - name: Checkout NuttX Documentation
+    - name: Checkout NuttX repo
       uses: actions/checkout@v2
       with:
         repository: apache/incubator-nuttx
-        fetch-depth: 1
         ref: master
-        path: nuttx/master
+        path: nuttx
     - uses: actions/setup-python@v2
       with:
         python-version: '3.8'
-    - name: Generate requirements.txt file
+    - name: Build docs
       run: |
-        cd nuttx/master/Documentation/
         pip3 install pipenv
-        pipenv lock -r > requirements.txt
-    - uses: ammaraskar/sphinx-action@master
-      with:
-        docs-folder: "nuttx/master/Documentation/"
+        mkdir -p target/docs
+        cd nuttx/Documentation
+
+        export NUTTX_VERSIONS=$(git tag -l nuttx-10*)

Review comment:
       GitHub does not fetch tags by default you have to add that




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org