Skip to content

Commit

Permalink
ci(core): Add dry run for rc tags (#3624)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Nov 20, 2023
1 parent 9b1ca3f commit 628b8e9
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 628b8e9

Please sign in to comment.