Cleanup CI/CD pipeline (#115)

This commit is contained in:
Thomas Schönauer
2022-11-02 16:25:54 +00:00
committed by GitHub
parent be0984cdf3
commit 16a7d5f00b
13 changed files with 182 additions and 252 deletions

View File

@@ -1,8 +1,12 @@
on:
# workflow_run:
# workflows: ["Check SemVer compliance"]
# types:
# - completed
release:
types: [published, edited]
name: Check SemVer compliance and publish on release
name: Publish to crates.io on release
jobs:
prepare:
@@ -14,17 +18,6 @@ jobs:
toolchain: nightly-2022-08-03
override: true
semver:
runs-on: ubuntu-latest
steps:
- uses: actions-rs/cargo@v1
with:
command: install
args: --git https://github.com/rust-lang/rust-semverver
- run: eval "current_version=$(grep -e '^version = .*$' Cargo.toml | cut -d ' ' -f 3)"
- run: cargo semver | tee semver_out
- run: (head -n 1 semver_out | grep "\-> $current_version") || (echo "versioning mismatch" && return 1)
publish:
runs-on: ubuntu-latest
steps: