File tree Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ if [ -z "$(git status --porcelain)" ]; then
7373 fi
7474
7575 # generate a new commit and tag it
76- if git add Cargo.toml float-pigment-css/compile_cache && git commit -m " chore: update version to publish" ; then
76+ if git add Cargo.toml Cargo.lock float-pigment-css/compile_cache && git commit -m " chore: update version to publish" ; then
7777 echo ' Generated a new version commit.'
7878 else
7979 echo ' Failed to commit! Abort.'
9898 exit -1
9999fi
100100
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+
101111# cargo publish
102112echo " Ready to publish version ${VERSION} ."
103113for PROJECT in $PROJECTS ; do
You can’t perform that action at this time.
0 commit comments