File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,7 @@ function make_bundle()
79
79
function publish()
80
80
{
81
81
echo " ---Create Release--------------------------------------"
82
-
83
- gh release create $TAG -p -t $TITLE $DIST_DIR /* .*
82
+ gh release create $TAG -t $TITLE $DIST_DIR /* .*
84
83
}
85
84
86
85
function main()
@@ -118,14 +117,20 @@ function main()
118
117
119
118
}
120
119
121
- if [[ $LIB_NAME == ' test' ]]; then
122
- echo " test" > $DIST_DIR /test.md
123
- publish
120
+ function upgrade()
121
+ {
124
122
file=" configs/libs/${LIB_NAME} .sh"
125
123
sed -i " " " s/^export PRE_COMPILE_TAG=.*/export PRE_COMPILE_TAG=$TAG /" $file
126
124
git add $file
127
- git commit -m " upgrade $LIB_NAME pre-compile version by cd"
125
+ git commit -m " upgrade $LIB_NAME to $TAG by cd"
128
126
git push origin
127
+ }
128
+
129
+ if [[ $LIB_NAME == ' test' ]]; then
130
+ echo " test" > $DIST_DIR /test.md
131
+ publish
132
+ upgrade
129
133
else
130
134
main
135
+ upgrade
131
136
fi
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ name: Test Release
9
9
10
10
jobs :
11
11
build :
12
- name : compile unibreak then deploy
12
+ name : compile none then deploy
13
13
runs-on : macos-13
14
14
env :
15
15
GH_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments