From 2a5cc3e9f1eae0c057ba4b017391fe3f9f4b42ef Mon Sep 17 00:00:00 2001 From: sundy-li <543950155@qq.com> Date: Wed, 20 Mar 2024 17:02:56 +0800 Subject: [PATCH] update version --- .github/workflows/publish.yml | 32 ++++++++++++++++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..fa61ca1 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,32 @@ +name: Publish + +on: + push: + 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 Release + run: | + cargo install cargo-quickinstall + cargo quickinstall cargo-release + - name: Release to crates.io + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: | + cargo release publish --execute --no-confirm + + diff --git a/Cargo.toml b/Cargo.toml index 19c6694..d4abdc2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ repository = "https://github.com/sundy-li/arrow_cli" edition = "2021" license = "Apache-2.0" name = "arrow_cli" -version = "0.0.4" +version = "0.1.0" [dependencies] shlex = "1.1.0"