Skip to content

Commit f61946b

Browse files
jschweemilio
authored andcommitted
CI: Add semver checks to CI deploy job
This will fail creating a new github release, if the semver action fails. This would have caught #841.
1 parent b61aa2c commit f61946b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
jobs:
99

1010
linux-binaries:
11+
permissions:
12+
# Grant the GITHUB_TOKEN additional permissions necessary for creating a release.
13+
# We only run this action for tags, so any code has already been reviewed by
14+
# someone with permissions to create a tag.
15+
contents: write
1116

1217
runs-on: ubuntu-latest
1318

@@ -17,6 +22,11 @@ jobs:
1722
- name: Install stable
1823
uses: dtolnay/rust-toolchain@stable
1924

25+
- name: semver
26+
uses: obi1kenobi/cargo-semver-checks-action@v2
27+
with:
28+
rust-toolchain: stable
29+
2030
- name: Build cbindgen
2131
run: |
2232
cargo build --release

0 commit comments

Comments
 (0)