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"