Skip to content

chore: bump version to 0.20.0 (#467) #85

chore: bump version to 0.20.0 (#467)

chore: bump version to 0.20.0 (#467) #85

Workflow file for this run

name: Publish
on:
push:
branches:
- main
paths:
- "Cargo.toml"
pull_request:
branches:
- main
paths:
- "Cargo.toml"
jobs:
crates:
runs-on: ubuntu-latest
environment:
name: crates.io
url: https://crates.io/crates/databend-driver
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
cache-key: publish
- name: Setup Cargo workspaces
run: |
cargo install cargo-quickinstall
cargo quickinstall cargo-workspaces
- name: Dry run release
if: github.event_name == 'pull_request'
run: |
cargo workspaces publish --all --dry-run --publish-as-is
- name: Release to crates.io
if: github.event_name == 'push'
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cargo workspaces publish --all --publish-as-is --yes