You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2022/12/19 22:19:10 UTC

[avro] branch avro-3686-asf.yaml-docs updated: AVRO-3886: Install NPM and PostCSS

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

mgrigorov pushed a commit to branch avro-3686-asf.yaml-docs
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/avro-3686-asf.yaml-docs by this push:
     new cd625e7f8 AVRO-3886: Install NPM and PostCSS
cd625e7f8 is described below

commit cd625e7f8bb80a033967a9ba215d45e0c44d3562
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Tue Dec 20 00:18:36 2022 +0200

    AVRO-3886: Install NPM and PostCSS
    
    Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
---
 .github/workflows/docs.yaml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
index ea24337f7..53f81dbd3 100644
--- a/.github/workflows/docs.yaml
+++ b/.github/workflows/docs.yaml
@@ -45,10 +45,12 @@ jobs:
             echo "Unsupported input: ${{ github.ref }} / ${{ github.ref_type }}"
             exit 1
           fi
+
       - name: Checkout docs sources
         uses: actions/checkout@v3
         with:
           submodules: recursive
+
       - name: Checkout docs target branch
         uses: actions/checkout@v3
         with:
@@ -56,17 +58,30 @@ jobs:
           ref: ${{ steps.target-branch.outputs.value }}
           path: docs-target
 
+      - uses: actions/setup-node@v3
+        with:
+          node-version: 16
+
+      - name: Install NPM dependencies
+        run: |
+          set -x
+          cd doc
+          npm install
+
       - name: Setup Hugo
         uses: peaceiris/actions-hugo@v2
         with:
           hugo-version: 0.108.0
           extended: true
+
       - name: Build docs
         run: |
           set -x
           cd doc
           hugo --minify --destination ../output
+
       # TODO build the C/C++/C# docs
+
       - name: Copy & push the generated HTML
         run: |
           set -x