diff --git a/.github/workflows/publish-ffi.yml b/.github/workflows/publish-ffi.yml new file mode 100644 index 0000000000..39a8fd72b1 --- /dev/null +++ b/.github/workflows/publish-ffi.yml @@ -0,0 +1,23 @@ +name: Publish minigraf-ffi + +# Triggered by a tag like ffi-v1.1.2 to publish only minigraf-ffi to crates.io. +# Used for patch releases that fix the FFI crate independently of the core. +on: + push: + tags: + - "ffi-v*" + +jobs: + publish: + name: cargo publish minigraf-ffi + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + + - name: Publish minigraf-ffi + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: cargo publish -p minigraf-ffi diff --git a/minigraf-ffi/Cargo.toml b/minigraf-ffi/Cargo.toml index 98294efe7e..f0cad516b8 100644 --- a/minigraf-ffi/Cargo.toml +++ b/minigraf-ffi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "minigraf-ffi" -version = "1.1.1" +version = "1.1.2" edition = "2024" description = "UniFFI bridge for Minigraf — bi-temporal graph database" license = "MIT OR Apache-2.0" @@ -12,7 +12,7 @@ keywords = ["graph", "datalog", "bitemporal", "embedded", "database"] categories = ["database-implementations", "embedded"] [lib] -crate-type = ["cdylib", "staticlib"] +crate-type = ["cdylib", "staticlib", "lib"] [[bin]] name = "uniffi-bindgen"