From 82c3310d116f671c561216a64416783cdeb4884a Mon Sep 17 00:00:00 2001 From: spacemeowx2 Date: Fri, 1 Jan 2021 01:47:13 +0800 Subject: [PATCH] chore: bump version to 0.2.2 --- .github/workflows/publish.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/rust.yml | 2 -- Cargo.lock | 2 +- blflash/Cargo.toml | 2 +- 4 files changed, 32 insertions(+), 4 deletions(-) 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..6222ee3 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,30 @@ +on: + release: + types: [published] + +name: Publish + +jobs: + publish: + name: Build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Cache Cargo + uses: actions/cache@v1 + with: + path: ~/.cargo + key: ubuntu-latest-stable-cargo-v1 + restore-keys: | + ubuntu-latest-stable-cargo-v1 + - name: Setup toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: cargo publish + uses: actions-rs/cargo@v1 + with: + command: publish + args: -p blflash --token ${{ secrets.CRATES_IO_TOKEN }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 11f1e71..456fde3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -87,5 +87,3 @@ jobs: file: target/${{ matrix.target }}/release/blflash asset_name: blflash-${{ matrix.target }} tag: ${{ github.ref }} - - \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 546964f..ff304b1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -84,7 +84,7 @@ dependencies = [ [[package]] name = "blflash" -version = "0.2.1" +version = "0.2.2" dependencies = [ "byteorder", "crc", diff --git a/blflash/Cargo.toml b/blflash/Cargo.toml index cee7772..cc4b0c3 100644 --- a/blflash/Cargo.toml +++ b/blflash/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "blflash" description = "BL602 serial flasher." -version = "0.2.1" +version = "0.2.2" authors = ["spacemeowx2 "] edition = "2018" license = "MIT OR Apache-2.0"