|
2 | 2 | [env] |
3 | 3 | CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = "true" |
4 | 4 | CARGO_MAKE_CARGO_ALL_FEATURES = "" |
| 5 | +CARGO_MAKE_WORKSPACE_SKIP_MEMBERS = "integration_tests/*;examples/*;juniper_benchmarks;" |
| 6 | + |
5 | 7 |
|
6 | | -# |
7 | 8 | # Run `RELEASE_LEVEL=(patch|major|minor) cargo make release` to push a new release of every crate. |
8 | | -# Run `RELEASE_LEVEL=(patch|major|minor) CARGO_MAKE_WORKSPACE_SKIP_MEMBERS="crate1;crate2;" cargo make release` |
9 | | -# to push a new release of some crates. |
10 | 9 | # |
11 | | - |
| 10 | +# Run `RELEASE_LEVEL=(patch|major|minor) CARGO_MAKE_WORKSPACE_INCLUDE_MEMBERS="crate1;crate2;" cargo make release` |
| 11 | +# to push a new release of a subset of crates. |
12 | 12 | [tasks.release] |
13 | 13 | condition = { env_set = [ "RELEASE_LEVEL" ] } |
14 | | -workspace = false |
15 | | -env = { "CARGO_MAKE_WORKSPACE_SKIP_MEMBERS" = "integration_tests/*;examples/*;juniper_benchmarks;" } |
16 | | -run_task = { name = "release-INTERNAL", fork = true } |
17 | | - |
18 | | - |
19 | | -[tasks.release-some] |
20 | | -condition = { env_set = [ "RELEASE_LEVEL", "CARGO_MAKE_WORKSPACE_SKIP_MEMBERS" ] } |
21 | | -workspace = false |
22 | | -run_task = { name = "release-INTERNAL", fork = true } |
23 | | - |
24 | | -# Hack to filter out crates we do not want to release. |
25 | | -# See <https://github.com/sagiegurari/cargo-make/issues/212#issuecomment-481123564> |
26 | | -[tasks.release-INTERNAL] |
27 | | -private = true |
28 | | -condition = { env_set = [ "RELEASE_LEVEL" ] } |
29 | 14 | command = "cargo-release" |
30 | 15 | args = ["release", "--config", "${CARGO_MAKE_WORKING_DIRECTORY}/../_build/release.toml", "${RELEASE_LEVEL}"] |
31 | 16 |
|
32 | 17 |
|
33 | | -# |
34 | 18 | # Run `RELEASE_LEVEL=(patch|major|minor) cargo make release-dry-run` to do a dry run. |
35 | | -# Run `RELEASE_LEVEL=(patch|major|minor) CARGO_MAKE_WORKSPACE_SKIP_MEMBERS="crate1;crate2;" cargo make release-some-dry-run` |
36 | | -# to do a dry run with some crates. |
37 | 19 | # |
38 | | - |
| 20 | +# Run `RELEASE_LEVEL=(patch|major|minor) CARGO_MAKE_WORKSPACE_INCLUDE_MEMBERS="crate1;crate2;" cargo make release-dry-run` |
| 21 | +# to do a dry run of a subset of crates. |
39 | 22 | [tasks.release-dry-run] |
40 | 23 | condition = { env_set = [ "RELEASE_LEVEL" ] } |
41 | | -workspace = false |
42 | | -env = { "CARGO_MAKE_WORKSPACE_SKIP_MEMBERS" = "integration_tests/*;examples/*;juniper_benchmarks;" } |
43 | | -run_task = { name = "release-dry-run-INTERNAL", fork = true } |
44 | | - |
45 | | -[tasks.release-some-dry-run] |
46 | | -condition = { env_set = [ "CARGO_MAKE_WORKSPACE_SKIP_MEMBERS", "RELEASE_LEVEL" ] } |
47 | | -workspace = false |
48 | | -run_task = { name = "release-some-dry-run-INTERNAL", fork = true } |
49 | | - |
50 | | - |
51 | | -# Hack to filter out crates we do not want to release. |
52 | | -# See <https://github.com/sagiegurari/cargo-make/issues/212#issuecomment-481123564> |
53 | | -[tasks.release-dry-run-INTERNAL] |
54 | | -private = true |
55 | | -condition = { env_set = [ "RELEASE_LEVEL" ] } |
56 | | -env = { "CARGO_MAKE_WORKSPACE_SKIP_MEMBERS" = "integration_tests/*;examples/*;juniper_benchmarks;" } |
57 | 24 | description = "Run `cargo-release --dry-run` for every crate" |
58 | 25 | command = "cargo-release" |
59 | 26 | args = ["release", "--config", "${CARGO_MAKE_WORKING_DIRECTORY}/../_build/release.toml", "--dry-run", "${RELEASE_LEVEL}"] |
60 | 27 |
|
61 | | -# |
62 | | -# Run `RELEASE_LEVEL=(patch|major|minor) cargo make release-local-test` to do actually make changes locally but |
| 28 | + |
| 29 | +# Run `RELEASE_LEVEL=(patch|major|minor) cargo make release-local-test` to actually make changes locally but |
63 | 30 | # not push them up to crates.io or Github. |
64 | | -# Run `RELEASE_LEVEL=(patch|major|minor) cargo make release-some-local-test` to do actually make changes locally but |
65 | | -# not push some crates up to crates.io or Github. |
66 | 31 | # |
67 | | - |
| 32 | +# Run `RELEASE_LEVEL=(patch|major|minor) CARGO_MAKE_WORKSPACE_INCLUDE_MEMBERS="crate1;crate2;" cargo make release-local-test` to actually make changes locally but |
| 33 | +# not push some crates up to crates.io or Github. |
68 | 34 | [tasks.release-local-test] |
69 | 35 | condition = { env_set = [ "RELEASE_LEVEL" ] } |
70 | | -workspace = false |
71 | | -env = { "CARGO_MAKE_WORKSPACE_SKIP_MEMBERS" = "integration_tests/*;examples/*;juniper_benchmarks;" } |
72 | | -run_task = { name = "release-local-test-INTERNAL", fork = true } |
73 | | - |
74 | | - |
75 | | -[tasks.release-some-local-test] |
76 | | -condition = { env_set = [ "CARGO_MAKE_WORKSPACE_SKIP_MEMBERS", "RELEASE_LEVEL" ] } |
77 | | -workspace = false |
78 | | -run_task = { name = "release-local-test-INTERNAL", fork = true } |
79 | | - |
80 | | - |
81 | | -# Hack to filter out crates we do not want to release. |
82 | | -# See <https://github.com/sagiegurari/cargo-make/issues/212#issuecomment-481123564> |
83 | | -[tasks.release-local-test-INTERNAL] |
84 | | -private = true |
85 | | -condition = { env_set = [ "RELEASE_LEVEL" ] } |
86 | 36 | description = "Run `cargo-release` for every crate, but only make changes locally" |
87 | 37 | command = "cargo-release" |
88 | 38 | args = ["release", "--config", "${CARGO_MAKE_WORKING_DIRECTORY}/../_build/release.toml", "--no-confirm", "--skip-publish", "--skip-push", "--skip-tag", "${RELEASE_LEVEL}"] |
0 commit comments