From 9daab5d6ac015cb1e68deaede7ad96aabe71bb29 Mon Sep 17 00:00:00 2001 From: Berend Sliedrecht <61358536+berendsliedrecht@users.noreply.github.com> Date: Wed, 24 Apr 2024 16:37:29 +0200 Subject: [PATCH] build(ci): add release workflow (#19) Signed-off-by: Berend Sliedrecht --- .github/workflows/cd.yml | 23 +++++++++++++++++++++++ Cargo.toml | 2 +- examples/mobile_tests/Cargo.toml | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..168fcb0 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,23 @@ +name: Crates.io Release + +env: + RUST_VERSION: "1.74" + +on: + workflow_dispatch: + +jobs: + release-crates: + name: Release crates.io + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install Rust Toolchain + uses: dtolnay/rust-toolchain@stable + with: + toolchain: ${{ env.RUST_VERSION }} + targets: x86_64-linux-android + + - run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --target=x86_64-linux-android diff --git a/Cargo.toml b/Cargo.toml index dccdc24..011bfb5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "secure-env" +name = "animo-secure-env" version = "0.1.0" edition = "2021" rust-version = "1.69" diff --git a/examples/mobile_tests/Cargo.toml b/examples/mobile_tests/Cargo.toml index a2df612..e7e5e84 100644 --- a/examples/mobile_tests/Cargo.toml +++ b/examples/mobile_tests/Cargo.toml @@ -5,6 +5,6 @@ edition = "2021" [dependencies] uuid = { version = "1.7.0", features = ["v4", "fast-rng"] } -secure-env = { path = "../.." } +secure-env = { package = "animo-secure-env", path = "../.." } askar-crypto = "0.3.1" p256 = "0.13.2"