Skip to content

Commit

Permalink
chore: Iterate on release process
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 16, 2021
1 parent fed22ae commit 0eb8fc3
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 36 deletions.
6 changes: 5 additions & 1 deletion .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ labels:
branches:
- name: master
protection:
# Manual: required_conversation_resolution: true, see https://github.com/probot/settings/issues/458
required_pull_request_reviews: null
required_conversation_resolution: true
required_status_checks:
# Required. Require branches to be up to date before merging.
strict: false
contexts: ["CI", "Lint Commits", "Spell Check with Typos"]
enforce_admins: false
restrictions: null
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ on:
- '!/docs/**'
- "!/LICENSE-*"
jobs:
ci:
name: CI
needs: [smoke, test, msrv, docs, rustfmt, clippy]
runs-on: ubuntu-latest
steps:
- name: Done
run: exit 0
smoke:
name: Quick Check
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/committed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Lint Commits
on: [pull_request]

jobs:
run:
committed:
name: Lint Commits
runs-on: ubuntu-latest
steps:
Expand Down
22 changes: 14 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,27 @@ members = ["crates/core", "crates/tree"]
[package]
name = "predicates"
version = "2.0.2"
description = "An implementation of boolean-valued predicate functions."
authors = ["Nick Stevens <nick@bitcurry.com>"]
license = "MIT/Apache-2.0"
readme = "README.md"
keywords = ["predicate", "boolean", "combinatorial", "match", "logic"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/assert-rs/predicates-rs"
homepage = "https://github.com/assert-rs/predicates-rs"
documentation = "https://docs.rs/predicates"
description = """
An implementation of boolean-valued predicate functions.
"""
readme = "README.md"
categories = ["data-structures", "rust-patterns"]
keywords = ["predicate", "boolean", "combinatorial", "match", "logic"]
edition = "2018"

[badges]
azure-devops = { project = "assert-rs", pipeline = "predicates-rs" }
[package.metadata.release]
pre-release-replacements = [
{file="src/lib.rs", search="predicates = \".*\"", replace="predicates = \"{{version}}\"", exactly=1},
{file="README.md", search="predicates = \".*\"", replace="predicates = \"{{version}}\"", exactly=1},
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/assert-rs/predicates-rs/compare/{{tag_name}}...HEAD", exactly=1},
]

[dependencies]
predicates-core = { version = "1.0", path = "crates/core" }
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

> An implementation of **boolean-valued predicate functions** in Rust.
[![Build Status](https://dev.azure.com/assert-rs/assert-rs/_apis/build/status/predicates-rs?branchName=master)](https://dev.azure.com/assert-rs/assert-rs/_build/latest?definitionId=1&branchName=master)
[![Documentation](https://img.shields.io/badge/docs-master-blue.svg)](https://docs.rs/predicates)
![License](https://img.shields.io/crates/l/predicates.svg)
[![Crates.io](https://img.shields.io/crates/v/predicates.svg?maxAge=2592000)](https://crates.io/crates/predicates)
Expand Down
11 changes: 3 additions & 8 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
[package]
name = "predicates-core"
version = "1.0.2"
description = "An API for boolean-valued predicate functions."
authors = ["Nick Stevens <nick@bitcurry.com>"]
license = "MIT/Apache-2.0"
license = "MIT OR Apache-2.0"
readme = "README.md"
keywords = ["predicate", "boolean", "combinatorial", "match", "logic"]
repository = "https://github.com/assert-rs/predicates-rs/tree/master/predicates-core"
homepage = "https://github.com/assert-rs/predicates-rs/tree/master/predicates-core"
documentation = "https://docs.rs/predicates-core"
description = """
An API for boolean-valued predicate functions.
"""
categories = ["data-structures", "rust-patterns"]
keywords = ["predicate", "boolean", "combinatorial", "match", "logic"]
edition = "2018"

[badges]
azure-devops = { project = "assert-rs", pipeline = "predicates-rs" }
11 changes: 3 additions & 8 deletions crates/tree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,16 @@
name = "predicates-tree"
version = "1.0.3"
authors = ["Nick Stevens <nick@bitcurry.com>"]
license = "MIT/Apache-2.0"
description = "Render boolean-valued predicate functions results as a tree."
license = "MIT OR Apache-2.0"
readme = "README.md"
keywords = ["predicate", "boolean", "combinatorial", "match", "logic"]
repository = "https://github.com/assert-rs/predicates-rs/tree/master/predicates-tree"
homepage = "https://github.com/assert-rs/predicates-rs/tree/master/predicates-tree"
documentation = "https://docs.rs/predicates-tree"
description = """
Render boolean-valued predicate functions results as a tree.
"""
categories = ["data-structures", "rust-patterns"]
keywords = ["predicate", "boolean", "combinatorial", "match", "logic"]
edition = "2018"

[badges]
azure-devops = { project = "assert-rs", pipeline = "predicates-rs" }

[dependencies]
predicates-core = { version = "1.0", path = "../core" }
treeline = "0.1"
10 changes: 1 addition & 9 deletions release.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,4 @@ tag-message = "{{tag_name}}"
tag-name = "{{prefix}}v{{version}}"
consolidate-commits = true
consolidate-pushes = true
pre-release-replacements = [
{file="src/lib.rs", search="predicates = \".*\"", replace="predicates = \"{{version}}\"", exactly=1},
{file="README.md", search="predicates = \".*\"", replace="predicates = \"{{version}}\"", exactly=1},
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/assert-rs/predicates-rs/compare/{{tag_name}}...HEAD", exactly=1},
]
allow-branch = ["master"]

0 comments on commit 0eb8fc3

Please sign in to comment.