You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/01/24 05:36:00 UTC

[pulsar-site] 01/01: update

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

commit e8b977b775688384d45f85127c6b87726de40629
Author: LiLi <ur...@apache.org>
AuthorDate: Mon Jan 24 13:35:43 2022 +0800

    update
    
    Signed-off-by: LiLi <ur...@apache.org>
---
 .../workflows/ci-pulsar-website-next-build.yaml    | 29 ++++++++--------------
 1 file changed, 11 insertions(+), 18 deletions(-)

diff --git a/.github/workflows/ci-pulsar-website-next-build.yaml b/.github/workflows/ci-pulsar-website-next-build.yaml
index 60f456f..ada0001 100644
--- a/.github/workflows/ci-pulsar-website-next-build.yaml
+++ b/.github/workflows/ci-pulsar-website-next-build.yaml
@@ -74,36 +74,29 @@ jobs:
         run: |
           cd ../
           git clone https://github.com/apache/pulsar.git
+          rm -rf pulsar/site2
+          mv pulsar/* pulsar-site/
+          ls -l pulsar-site
 
       - name: Run install by skip tests
-        run: |
-          cd ../pulsar 
-          mvn -q -B -ntp install -Pcore-modules,-main -DskipTests -DskipSourceReleaseAssembly=true -Dspotbugs.skip=true -Dlicense.skip=true
-
+        run: mvn -q -B -ntp install -Pcore-modules,-main -DskipTests -DskipSourceReleaseAssembly=true -Dspotbugs.skip=true -Dlicense.skip=true
+          
       - name: Generate swagger json file
-        run: |
-          cd ../pulsar 
-          mvn -B -ntp -pl pulsar-broker install -DskipTests -Pswagger
+        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: |
-          pwd
-          ls -l
-          echo "testing..."
-
           export CROWDIN_DOCUSAURUS_PROJECT_ID=apache-pulsar
           echo "Copying swagger json file ..."
           mkdir -p site2/website-next/static/swagger/master/
-          cp ../pulsar/pulsar-broker/target/docs/swagger*.json site2/website-next/static/swagger/master
-
-          ls -l site2/website-next/static/swagger
+          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
 
-          # 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