Skip to content

Commit 7b14c0a

Browse files
committed
update version by default
1 parent e9e1245 commit 7b14c0a

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/onestep.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ function make_bundle()
7979
function publish()
8080
{
8181
echo "---Create Release--------------------------------------"
82-
83-
gh release create $TAG -p -t $TITLE $DIST_DIR/*.*
82+
gh release create $TAG -t $TITLE $DIST_DIR/*.*
8483
}
8584

8685
function main()
@@ -118,14 +117,20 @@ function main()
118117

119118
}
120119

121-
if [[ $LIB_NAME == 'test' ]];then
122-
echo "test" > $DIST_DIR/test.md
123-
publish
120+
function upgrade()
121+
{
124122
file="configs/libs/${LIB_NAME}.sh"
125123
sed -i "" "s/^export PRE_COMPILE_TAG=.*/export PRE_COMPILE_TAG=$TAG/" $file
126124
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"
128126
git push origin
127+
}
128+
129+
if [[ $LIB_NAME == 'test' ]];then
130+
echo "test" > $DIST_DIR/test.md
131+
publish
132+
upgrade
129133
else
130134
main
135+
upgrade
131136
fi

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: Test Release
99

1010
jobs:
1111
build:
12-
name: compile unibreak then deploy
12+
name: compile none then deploy
1313
runs-on: macos-13
1414
env:
1515
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)