This is an automated email from the ASF dual-hosted git repository.
urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new 6da40d3 update
6da40d3 is described below
commit 6da40d316e45e55a93671c5d3fb7d533913f26b9
Author: LiLi <[email protected]>
AuthorDate: Mon Jan 24 14:09:32 2022 +0800
update
Signed-off-by: LiLi <[email protected]>
---
.../workflows/ci-pulsar-website-next-build.yaml | 35 +++++++++-------------
1 file changed, 14 insertions(+), 21 deletions(-)
diff --git a/.github/workflows/ci-pulsar-website-next-build.yaml
b/.github/workflows/ci-pulsar-website-next-build.yaml
index 0cc0f41..59851f5 100644
--- a/.github/workflows/ci-pulsar-website-next-build.yaml
+++ b/.github/workflows/ci-pulsar-website-next-build.yaml
@@ -77,33 +77,26 @@ jobs:
rm -rf pulsar/.git
rm -rf pulsar/site2
mv pulsar/* pulsar-site/
- ls -l pulsar-site
- ls -l pulsar-site/site2
-
- - name: Test git info
- run: git rev-parse --show-toplevel
- # - name: Run install by skip tests
- # run: mvn -q -B -ntp install -Pcore-modules,-main -DskipTests
-DskipSourceReleaseAssembly=true -Dspotbugs.skip=true -Dlicense.skip=true
+ - name: Run install by skip tests
+ run: mvn -q -B -ntp install -Pcore-modules,-main -DskipTests
-DskipSourceReleaseAssembly=true -Dspotbugs.skip=true -Dlicense.skip=true
- # - name: Generate swagger json file
- # run: mvn -B -ntp -pl pulsar-broker install -DskipTests -Pswagger
+ - name: Generate swagger json file
+ run: mvn -B -ntp -pl pulsar-broker install -DskipTests -Pswagger
- name: Publish
env:
GH_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
CROWDIN_DOCUSAURUS_API_KEY: ${{
secrets.PULSAR_CROWDIN_DOCUSAURUS_API_KEY }}
run: |
- echo "TOKEN: "$GH_TOKEN
- echo "CROWDIN: "$CROWDIN_DOCUSAURUS_API_KEY
- # export CROWDIN_DOCUSAURUS_PROJECT_ID=apache-pulsar
- # echo "Copying swagger json file ..."
- # mkdir -p site2/website-next/static/swagger/master/
- # cp pulsar-broker/target/docs/swagger*.json
site2/website-next/static/swagger/master
- # echo "Copied swagger json file."
- # echo "Building Website"
- # # Build the new website
- # site2/tools/docker-build-site.sh next
+ export CROWDIN_DOCUSAURUS_PROJECT_ID=apache-pulsar
+ echo "Copying swagger json file ..."
+ mkdir -p site2/website-next/static/swagger/master/
+ cp pulsar-broker/target/docs/swagger*.json
site2/website-next/static/swagger/master
+ echo "Copied swagger json file."
+ echo "Building Website"
+ # Build the new website
+ site2/tools/docker-build-site.sh next
- # # # Script was initially made for travis
- # # bash -e site2/tools/publish-website.sh next
+ # # Script was initially made for travis
+ # bash -e site2/tools/publish-website.sh next