File tree Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,14 @@ if [ -z "$(git status --porcelain)" ]; then
7272 exit -1
7373 fi
7474
75+ # run cargo check again to update cargo lock
76+ if cargo check; then
77+ echo ' Cargo check done.'
78+ else
79+ echo ' Cargo check failed! Abort.'
80+ exit -1
81+ fi
82+
7583 # generate a new commit and tag it
7684 if git add Cargo.toml Cargo.lock float-pigment-css/compile_cache && git commit -m " chore: update version to publish" ; then
7785 echo ' Generated a new version commit.'
98106 exit -1
99107fi
100108
101- # dry run publish to see if there is any problem
102- for PROJECT in $PROJECTS ; do
103- if cargo publish --dry-run -p " ${PROJECT} " ; then
104- echo " Dry-run publishing ${PROJECT} done."
105- else
106- echo " Dry-run publishing ${PROJECT} error! Abort."
107- exit -1
108- fi
109- done
110-
111109# cargo publish
112110echo " Ready to publish version ${VERSION} ."
113111for PROJECT in $PROJECTS ; do
You can’t perform that action at this time.
0 commit comments