forked from jcornaz/heron
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease.yml
49 lines (44 loc) · 2.14 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
hooks:
verify:
- cargo test --workspace
- cargo test --workspace --no-default-features --features "2d"
- cargo test --workspace --no-default-features --features "2d, debug"
- cargo test --workspace --no-default-features --features "3d"
- cargo test --workspace --no-default-features --features "3d, debug"
prepare:
- "sed -i 's/\".*\" # auto-version/\"{{version}}\" # auto-version/' core/Cargo.toml"
- "sed -i 's/\".*\" # auto-version/\"{{version}}\" # auto-version/' rapier/Cargo.toml"
- "sed -i 's/\".*\" # auto-version/\"{{version}}\" # auto-version/' debug/Cargo.toml"
- "sed -i 's/\".*\" # auto-version/\"{{version}}\" # auto-version/' macros/Cargo.toml"
- "sed -i 's/\".*\" # auto-version/\"{{version}}\" # auto-version/' Cargo.toml"
- "sed -i 's/version = \".*\", path =/version = \"^{{version}}\", path =/' core/Cargo.toml"
- "sed -i 's/version = \".*\", path =/version = \"^{{version}}\", path =/' rapier/Cargo.toml"
- "sed -i 's/version = \".*\", path =/version = \"^{{version}}\", path =/' debug/Cargo.toml"
- "sed -i 's/version = \".*\", path =/version = \"^{{version}}\", path =/' macros/Cargo.toml"
- "sed -i 's/version = \".*\", path =/version = \"^{{version}}\", path =/' Cargo.toml"
- "sed -i 's/heron = \".*\"/heron = \"{{version}}\"/' README.md"
- "sed -i 's/heron = \".*\"/heron = \"{{version}}\"/' src/lib.rs"
- "sed -i 's/heron = { version = \"[0-9a-z\\.-]*\"/heron = { version = \"{{version}}\"/' README.md"
- "sed -i 's/heron = { version = \"[0-9a-z\\.-]*\"/heron = { version = \"{{version}}\"/' src/lib.rs"
- "sed -i 's/heron = { version = \"[0-9a-z\\.-]*\"/heron = { version = \"{{version}}\"/' guide/src/quickstart.md"
publish:
- cd core && cargo publish && cd ..
- sleep 60
- cd macros && cargo publish && cd ..
- cd rapier && cargo publish && cd ..
- sleep 60
- cd debug && cargo publish && cd ..
- sleep 60
- cargo publish
commit:
files:
- core/Cargo.toml
- rapier/Cargo.toml
- debug/Cargo.toml
- macros/Cargo.toml
- Cargo.toml
- src/lib.rs
- README.md
- guide/src/quickstart.md
github:
repo: jcornaz/heron