forked from bevyengine/bevy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.sh
75 lines (69 loc) · 1.29 KB
/
publish.sh
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# if crate A depends on crate B, B must come before A in this list
crates=(
bevy_utils/macros
bevy_utils
bevy_ptr
bevy_macro_utils
bevy_derive
bevy_math
bevy_tasks
bevy_reflect/bevy_reflect_derive
bevy_reflect
bevy_ecs/macros
bevy_ecs
bevy_app
bevy_time
bevy_log
bevy_dynamic_plugin
bevy_asset/macros
bevy_asset
bevy_audio
bevy_core
bevy_diagnostic
bevy_hierarchy
bevy_transform
bevy_window
bevy_encase_derive
bevy_render/macros
bevy_mikktspace
bevy_render
bevy_core_pipeline
bevy_input
bevy_gilrs
bevy_animation
bevy_pbr
bevy_gltf
bevy_scene
bevy_sprite
bevy_gizmos/macros
bevy_gizmos
bevy_text
bevy_a11y
bevy_ui
bevy_winit
bevy_dev_tools
bevy_internal
bevy_dylib
bevy_color
)
if [ -n "$(git status --porcelain)" ]; then
echo "You have local changes!"
exit 1
fi
pushd crates
for crate in "${crates[@]}"
do
echo "Publishing ${crate}"
cp ../LICENSE-MIT "$crate"
cp ../LICENSE-APACHE "$crate"
pushd "$crate"
git add LICENSE-MIT LICENSE-APACHE
cargo publish --no-verify --allow-dirty
popd
sleep 20
done
popd
echo "Publishing root crate"
cargo publish --allow-dirty
echo "Cleaning local state"
git reset HEAD --hard