You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by ti...@apache.org on 2024/05/02 08:38:16 UTC
(opendal) branch fixup-release-node-and-rc-site created (now 931327edd1)
This is an automated email from the ASF dual-hosted git repository.
tison pushed a change to branch fixup-release-node-and-rc-site
in repository https://gitbox.apache.org/repos/asf/opendal.git
at 931327edd1 ci: fixup release nodejs and rc site
This branch includes the following new commits:
new 931327edd1 ci: fixup release nodejs and rc site
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(opendal) 01/01: ci: fixup release nodejs and rc site
Posted by ti...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch fixup-release-node-and-rc-site
in repository https://gitbox.apache.org/repos/asf/opendal.git
commit 931327edd17f7262f7e65c8cdd5b6697ab218637
Author: tison <wa...@gmail.com>
AuthorDate: Thu May 2 16:37:59 2024 +0800
ci: fixup release nodejs and rc site
Signed-off-by: tison <wa...@gmail.com>
---
.github/workflows/ci_bindings_nodejs.yml | 4 +++-
.github/workflows/docs.yml | 9 ++++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/ci_bindings_nodejs.yml b/.github/workflows/ci_bindings_nodejs.yml
index ab748f513c..460b7ac7b5 100644
--- a/.github/workflows/ci_bindings_nodejs.yml
+++ b/.github/workflows/ci_bindings_nodejs.yml
@@ -92,7 +92,7 @@ jobs:
-e NAPI_TARGET=x86_64-unknown-linux-gnu \
-w /build/bindings/nodejs \
ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian \
- bash -c "pnpm build"
+ bash -c "corepack enable && pnpm build"
cd bindings/nodejs
# change owner to current user
sudo chown -R 1001:121 *.node
@@ -105,6 +105,7 @@ jobs:
ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64 \
bash -c "set -e &&
rustup target add aarch64-unknown-linux-gnu &&
+ corepack enable &&
pnpm build --target aarch64-unknown-linux-gnu &&
aarch64-unknown-linux-gnu-strip *.node"
cd bindings/nodejs
@@ -119,6 +120,7 @@ jobs:
ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine \
bash -c "set -e &&
rustup target add aarch64-unknown-linux-musl &&
+ corepack enable &&
pnpm build --target aarch64-unknown-linux-musl &&
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node"
cd bindings/nodejs
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index ead8f97250..194104ee4c 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -488,13 +488,20 @@ jobs:
publish_dir: website/build
publish_branch: site/main-staging
+ - name: Prepare rc staged name
+ if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, 'rc') }}
+ run: |
+ export OPENDAL_WEBSITE_STAGED_NAME=$(echo ${{ github.ref_name }} | sed 's/[.-]/_/g')
+ echo OPENDAL_WEBSITE_STAGED_NAME=${OPENDAL_WEBSITE_STAGED_NAME}
+ echo OPENDAL_WEBSITE_STAGED_NAME=${OPENDAL_WEBSITE_STAGED_NAME} >> $GITHUB_ENV
+
- name: Deploy to rc staged
uses: peaceiris/actions-gh-pages@v3.9.2
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, 'rc') }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: website/build
- publish_branch: site/${{ github.ref_name }}-staging
+ publish_branch: site/${{ env.OPENDAL_WEBSITE_STAGED_NAME }}-staging
- name: Clear build
run: rm -rf ./website/build