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:20:54 UTC
[avro] 01/01: 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
commit 67b430d10075fb9cb6378840b9e18f649e80f15a
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 | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
index ea24337f7..ecde36531 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
@@ -74,7 +89,7 @@ jobs:
# delete anything but: 1) '.'; 2) '..'; 3) .git/
find ./ | grep -vE "^./$|^../$|^./.git" | xargs rm -rf
cp ../.asf.yaml .
- cp -r ../docs/public/* .
+ cp -r ../doc/public/* .
# TODO copy the C/C++/C# docs
if [ "$(git status --porcelain)" != "" ]; then
git config user.name "github-actions[bot]"