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:49:25 UTC
[incubator-opendal] branch main updated: website: Fix website publish (#1626)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new f5f360e3 website: Fix website publish (#1626)
f5f360e3 is described below
commit f5f360e3ab67aa7bb439477c7aaa5a667f46593a
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Wed Mar 15 23:49:20 2023 +0800
website: Fix website publish (#1626)
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