From acca165ef101a201dd0e6bb14851bd058ddc5577 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sun, 18 Aug 2024 20:39:13 +0200 Subject: [PATCH] Added `obi1kenobi/cargo-semver-checks` to the publishing workflows --- .github/workflows/publish-libosdp-sys.yml | 4 ++++ .github/workflows/publish-libosdp.yml | 4 ++++ .github/workflows/publish-osdpctl.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/publish-libosdp-sys.yml b/.github/workflows/publish-libosdp-sys.yml index 09606fb..dd18c0f 100644 --- a/.github/workflows/publish-libosdp-sys.yml +++ b/.github/workflows/publish-libosdp-sys.yml @@ -43,6 +43,10 @@ jobs: with: toolchain: stable override: true + - name: Check semver + uses: obi1kenobi/cargo-semver-checks-action@v2 + with: + package: libosdp-sys - name: "Publish crate" run: | cargo publish --token ${CRATES_TOKEN} -p libosdp-sys diff --git a/.github/workflows/publish-libosdp.yml b/.github/workflows/publish-libosdp.yml index a4a0d26..c70c92e 100644 --- a/.github/workflows/publish-libosdp.yml +++ b/.github/workflows/publish-libosdp.yml @@ -43,6 +43,10 @@ jobs: with: toolchain: stable override: true + - name: Check semver + uses: obi1kenobi/cargo-semver-checks-action@v2 + with: + package: libosdp - name: "Publish crate" run: | cargo publish --token ${CRATES_TOKEN} -p libosdp diff --git a/.github/workflows/publish-osdpctl.yml b/.github/workflows/publish-osdpctl.yml index f26d990..87b3bf3 100644 --- a/.github/workflows/publish-osdpctl.yml +++ b/.github/workflows/publish-osdpctl.yml @@ -35,6 +35,10 @@ jobs: run: echo "TAG=${REL_TAG}" >> "${GITHUB_ENV}" env: REL_TAG: ${{ github.ref_name }} + - name: Check semver + uses: obi1kenobi/cargo-semver-checks-action@v2 + with: + package: osdpctl - name: "Publish crate" run: | cargo publish --token ${CRATES_TOKEN} -p osdpctl