From 479aba8011cc809599324cf6d9d3d33248872ed5 Mon Sep 17 00:00:00 2001 From: mimir-d Date: Mon, 14 Oct 2024 16:01:13 +0100 Subject: [PATCH 1/4] fix removed command from publish instructions Signed-off-by: mimir-d --- DEVELOPERS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/DEVELOPERS.md b/DEVELOPERS.md index de4bc6a..68a829b 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -37,5 +37,6 @@ $ cargo release tag --sign-tag --execute 4. push with tags ```bash $ git checkout main +$ git push $ git push --tags ``` From 019862c44d5a94d06a4d686a8851d5fa772e352c Mon Sep 17 00:00:00 2001 From: mimir-d Date: Mon, 14 Oct 2024 16:11:05 +0100 Subject: [PATCH 2/4] add some readme badges Signed-off-by: mimir-d --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ba29a3c..efe5da7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # ocp-diag-core-rust +[![Crates.io Version](https://img.shields.io/crates/v/ocptv)](https://crates.io/crates/ocptv) [![codecov](https://codecov.io/github/opencomputeproject/ocp-diag-core-rust/graph/badge.svg?token=IJOG0T8XZ3)](https://codecov.io/github/opencomputeproject/ocp-diag-core-rust) +[![GitHub License](https://img.shields.io/github/license/opencomputeproject/ocp-diag-core-rust)](https://github.com/opencomputeproject/ocp-diag-core-rust/blob/dev/LICENSE) The **OCP Test & Validation Initiative** is a collaboration between datacenter hyperscalers having the goal of standardizing aspects of the hardware validation/diagnosis space, along with providing necessary tooling to enable both diagnostic developers and executors to leverage these interfaces. From 67f7a1a7738212040bb14ffb97676a63f51c5eb0 Mon Sep 17 00:00:00 2001 From: mimir-d Date: Mon, 14 Oct 2024 16:11:19 +0100 Subject: [PATCH 3/4] more fixes for the publish workflow - fix the readme install instructions - fix the allow-branch in the publish command Signed-off-by: mimir-d --- .github/workflows/publish.yaml | 2 +- DEVELOPERS.md | 4 ++-- README.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4c90b5e..4a71beb 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -49,6 +49,6 @@ jobs: cargo release \ publish \ --all-features \ - --allow-branch HEAD \ + --allow-branch main \ --no-confirm \ --execute diff --git a/DEVELOPERS.md b/DEVELOPERS.md index 68a829b..ed9409d 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -15,10 +15,10 @@ To make a new release, and publish to crates.io, a new tagged commit needs to exist on the `main` branch. This is done with a simple merge from the `dev` branch. **Do not** push any other kinds of commits to the `main` branch. Steps: -1. bump the version. Will need [`cargo-release`](https://crates.io/crates/cargo-release) crate. Example here bumps the *patch* version. +1. bump the version. Will need [`cargo-release`](https://crates.io/crates/cargo-release) crate. Example here bumps the *patch* version (see [cargo semver](https://doc.rust-lang.org/cargo/reference/semver.html) when deciding which version number to bump). ```bash $ git checkout dev -$ cargo release version patch --execute +$ cargo release version patch --execute # also note to update the readme $ cargo release changes # note any changelog to add to the commit, or manually craft it $ git add . $ git commit diff --git a/README.md b/README.md index efe5da7..94ed045 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ For general usage, the following steps should be sufficient to get the latest st ```toml [dependencies] - ocptv = "0.1.0" + ocptv = "~0.1" ``` To use the bleeding edge instead of the stable version, the dependecies section should be modified like this: From c741eeee7d989df26abb6bee662a9d6f7e5319df Mon Sep 17 00:00:00 2001 From: mimir-d Date: Mon, 14 Oct 2024 16:12:10 +0100 Subject: [PATCH 4/4] bump version 0.1.2 -> 0.1.3 Signed-off-by: mimir-d --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ce97618..b8bae04 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -685,7 +685,7 @@ dependencies = [ [[package]] name = "ocptv" -version = "0.1.2" +version = "0.1.3" dependencies = [ "anyhow", "assert-json-diff", diff --git a/Cargo.toml b/Cargo.toml index 7c06aca..62c8632 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ocptv" -version = "0.1.2" +version = "0.1.3" description = "Strongly typed Rust API for OCPTV output" authors = ["OCP Test & Validation Project"] keywords = ["ocptv", "hardware", "validation"]