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/11/20 09:00:54 UTC
(incubator-opendal) branch main updated: ci(core): Add dry run for rc tags (#3624)
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 628b8e913 ci(core): Add dry run for rc tags (#3624)
628b8e913 is described below
commit 628b8e913650d5e129b747294af53ccb77bfa065
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon Nov 20 17:00:49 2023 +0800
ci(core): Add dry run for rc tags (#3624)
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
.github/workflows/publish.yml | 28 ++++++++--------------------
1 file changed, 8 insertions(+), 20 deletions(-)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index a9ea19be2..ebdbf534f 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -25,7 +25,7 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
- if: "startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-')"
+ if: "startsWith(github.ref, 'refs/tags/')"
steps:
- uses: actions/checkout@v4
- name: Checkout python env
@@ -44,30 +44,18 @@ jobs:
need-rocksdb: true
need-protoc: true
- - name: Publish opendal
+ - name: Dryrun opendal
working-directory: "core"
- run: cargo publish --all-features
+ if: "contains(github.ref, '-')"
+ run: cargo publish --all-features --dry-run
env:
LD_LIBRARY_PATH: ${{ env.JAVA_HOME }}/lib/server:${{ env.LD_LIBRARY_PATH }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- - name: Publish object_store_opendal
- working-directory: "integrations/object_store"
- run: cargo publish
- env:
- LD_LIBRARY_PATH: ${{ env.JAVA_HOME }}/lib/server:${{ env.LD_LIBRARY_PATH }}
- CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
-
- - name: Publish oli
- working-directory: "bin/oli"
- run: cargo publish
- env:
- LD_LIBRARY_PATH: ${{ env.JAVA_HOME }}/lib/server:${{ env.LD_LIBRARY_PATH }}
- CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
-
- - name: Publish oay
- working-directory: "bin/oay"
- run: cargo publish
+ - name: Publish opendal
+ working-directory: "core"
+ if: "!contains(github.ref, '-')"
+ run: cargo publish --all-features
env:
LD_LIBRARY_PATH: ${{ env.JAVA_HOME }}/lib/server:${{ env.LD_LIBRARY_PATH }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}