You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/03/15 15:47:20 UTC

[incubator-opendal] 01/01: website: Fix website publish

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

xuanwo pushed a commit to branch fix-asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit a8c948295b732c921d9b1dbcef880e7629822b37
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Wed Mar 15 23:46:52 2023 +0800

    website: Fix website publish
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 .asf.yaml                  |  5 ++---
 .github/workflows/docs.yml | 32 ++++++++++++++++++--------------
 2 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 2ebe1e9f..c8c2cf18 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -13,6 +13,5 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-github:
-  ghp_branch:  gh-pages
-  ghp_path:    /
+publish:
+  whoami: gh-pages
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 07c0746f..f971c5c3 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -40,7 +40,8 @@ jobs:
       - name: Install rocksdb
         run: sudo apt install librocksdb-dev
 
-      - uses: Swatinem/rust-cache@v2
+      # Disable until we are allowed
+      # - uses: Swatinem/rust-cache@v2
 
       - uses: actions-rs/cargo@v1
         with:
@@ -80,24 +81,27 @@ jobs:
           yarn build
 
       # Start deploy --------------------------------------------------
+      - name: Copy asf file
+        run:  cp .asf.yaml ./website/build/.asf.yaml
+
       - name: Deploy to gh-pages
         uses: peaceiris/actions-gh-pages@v3.9.2
         if: github.event_name == 'push' && github.ref_name == 'main'
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}
-          cname: opendal.apache.org
           publish_dir: website/build
           publish_branch: gh-pages
 
-      - name: Deploy to vercel (preview)
-        if: github.repository_owner == 'datafuselabs' && github.ref_name != 'main'
-        uses: amondnet/vercel-action@v25.1.1
-        with:
-          vercel-token: ${{ secrets.VERCEL_TOKEN }}
-          github-token: ${{ secrets.GITHUB_TOKEN }}
-          vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
-          vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
-          alias-domains: |
-            opendal-git-{{BRANCH}}.vercel.app
-          scope: databend
-          working-directory: ./website/build
+      # Disable until we are allowed
+      # - name: Deploy to vercel (preview)
+      #   if: github.repository_owner == 'datafuselabs' && github.ref_name != 'main'
+      #   uses: amondnet/vercel-action@v25.1.1
+      #   with:
+      #     vercel-token: ${{ secrets.VERCEL_TOKEN }}
+      #     github-token: ${{ secrets.GITHUB_TOKEN }}
+      #     vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
+      #     vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
+      #     alias-domains: |
+      #       opendal-git-{{BRANCH}}.vercel.app
+      #     scope: databend
+      #     working-directory: ./website/build