From 8df4cfe43685f09214d6c95b3451a3dc4419e61e Mon Sep 17 00:00:00 2001 From: Naxdy Date: Sun, 13 Apr 2025 20:42:56 +0200 Subject: [PATCH] chore: declare 1.0.0 --- .github/workflows/publish-crate.yml | 28 ++++++++++++++++++++++++++++ Cargo.lock | 4 ++-- Cargo.toml | 2 +- macros/Cargo.toml | 2 +- testbin/Cargo.toml | 5 +++-- 5 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/publish-crate.yml diff --git a/.github/workflows/publish-crate.yml b/.github/workflows/publish-crate.yml new file mode 100644 index 0000000..19428fb --- /dev/null +++ b/.github/workflows/publish-crate.yml @@ -0,0 +1,28 @@ +name: Publish Crate + +on: + push: + tags: + - '*' + +jobs: + publish: + name: Publish Crate + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - uses: cachix/install-nix-action@v27 + + - uses: cachix/cachix-action@v14 + with: + name: naxdy-foss + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + + - name: Enter devshell + uses: nicknovitski/nix-develop@v1 + + - uses: katyo/publish-crates@v2 + with: + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/Cargo.lock b/Cargo.lock index afb8f5c..e2951a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -385,7 +385,7 @@ dependencies = [ [[package]] name = "staticrypt_macros" -version = "0.1.0" +version = "1.0.0" dependencies = [ "aes-gcm", "darling", @@ -400,7 +400,7 @@ dependencies = [ [[package]] name = "staticrypt_testbin" -version = "0.1.0" +version = "1.0.0" dependencies = [ "staticrypt", ] diff --git a/Cargo.toml b/Cargo.toml index 2b9f41e..e7f4fb7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,4 +11,4 @@ aes-gcm = "0.10.3" [dependencies] aes-gcm.workspace = true -staticrypt_macros = { version = "0.1.0", path = "macros" } +staticrypt_macros = { version = "*", path = "macros" } diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 24020bb..84c49da 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "staticrypt_macros" -version = "0.1.0" +version = "1.0.0" edition = "2024" publish = false diff --git a/testbin/Cargo.toml b/testbin/Cargo.toml index e9b2a60..4c9f15a 100644 --- a/testbin/Cargo.toml +++ b/testbin/Cargo.toml @@ -1,7 +1,8 @@ [package] name = "staticrypt_testbin" -version = "0.1.0" +version = "1.0.0" edition = "2024" +publish = false [dependencies] -staticrypt = { version = "0.1.0", path = ".." } +staticrypt = { version = "*", path = ".." }