diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd2fce22..ceed7a63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,16 @@ permissions: contents: read on: + workflow_dispatch: + inputs: + ref: + description: 'Ref to release' + required: false + default: '' + ref_name: + description: 'Tag to (re)release' + required: false + push: tags: - 'v*' @@ -46,6 +56,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.ref }} - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable @@ -78,16 +90,17 @@ jobs: echo "✅ Versions match confirmed!" - - name: Setup Cargo Login - run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }} - - name: Publish flowsdk (Core) + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} run: cargo publish -p flowsdk - name: Wait for Index Propagation run: sleep 40 - name: Publish flowsdk_ffi (Bindings) + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} run: cargo publish -p flowsdk_ffi build-and-upload: @@ -119,6 +132,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.ref }} - name: Install Rust uses: dtolnay/rust-toolchain@stable @@ -198,5 +213,3 @@ jobs: asset_path: ./flowsdk-${{ needs.create-release.outputs.version }}-${{ matrix.asset_name_suffix }}.zip asset_name: flowsdk-${{ needs.create-release.outputs.version }}-${{ matrix.asset_name_suffix }}.zip asset_content_type: application/zip - - \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 1f15b3f8..e2dfee0f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "flowsdk" -version = "0.4.0" +version = "0.4.1" edition = "2021" description = "Safety-first, realistic, behavior-predictable messaging SDK for MQTT and more." license = "MPL-2.0" repository = "https://github.com/emqx/flowsdk" documentation = "https://docs.rs/flowsdk" keywords = ["mqtt", "async", "tokio", "network", "mqtt_over_quic"] -categories = ["network-programming", "asynchronous", "communication"] +categories = ["network-programming", "asynchronous"] [workspace] members = [".", "mqtt_grpc_duality", "flowsdk_ffi"] diff --git a/flowsdk_ffi/Cargo.toml b/flowsdk_ffi/Cargo.toml index a7f54be2..42104480 100644 --- a/flowsdk_ffi/Cargo.toml +++ b/flowsdk_ffi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flowsdk_ffi" -version = "0.4.0" +version = "0.4.1" edition = "2021" description = "FFI bindings for FlowSDK, allowing multi-language integration." license = "MPL-2.0" @@ -13,7 +13,7 @@ categories = ["api-bindings"] crate-type = ["cdylib", "staticlib", "rlib"] [dependencies] -flowsdk = { path = "..", version = "0.4.0" } +flowsdk = { path = "..", version = "0.4.1" } libc = "0.2" serde = { version = "1.0", features = ["derive"] } uniffi = { version = "0.28", features = ["cli"] }