@@ -182,19 +182,19 @@ jobs:
182182 if [ -f ${{github.workspace}}/Script/common.sh ]; then
183183 source ${{github.workspace}}/Script/common.sh
184184
185- content=$(<${{github.workspace}}/ChangeLog.log )
185+ content=$(<${{github.workspace}}/ChangeLog.md )
186186 if [[ $content =~ ${{env.RabbitRemoteControl_VERSION}} ]]; then
187187 echo "## :us: Change log" >> ${{github.workspace}}/Release.md
188188 echo "" >> ${{github.workspace}}/Release.md
189- get_section ${{github.workspace}}/ChangeLog.log >> ${{github.workspace}}/Release.md
189+ get_section ${{github.workspace}}/ChangeLog.md >> ${{github.workspace}}/Release.md
190190 echo "" >> ${{github.workspace}}/Release.md
191191 fi
192192
193- content=$(<${{github.workspace}}/ChangeLog_zh_CN.log )
193+ content=$(<${{github.workspace}}/ChangeLog_zh_CN.md )
194194 if [[ $content =~ ${{env.RabbitRemoteControl_VERSION}} ]]; then
195195 echo "## :cn: 修改日志" >> ${{github.workspace}}/Release.md
196196 echo "" >> ${{github.workspace}}/Release.md
197- get_section ${{github.workspace}}/ChangeLog_zh_CN.log >> ${{github.workspace}}/Release.md
197+ get_section ${{github.workspace}}/ChangeLog_zh_CN.md >> ${{github.workspace}}/Release.md
198198 echo "" >> ${{github.workspace}}/Release.md
199199 fi
200200 fi
@@ -217,11 +217,11 @@ jobs:
217217 if [ -f ${{github.workspace}}/Script/common.sh ]; then
218218 source ${{github.workspace}}/Script/common.sh
219219
220- content=$(<${{github.workspace}}/ChangeLog.log )
220+ content=$(<${{github.workspace}}/ChangeLog.md )
221221 if [[ $content =~ ${{env.RabbitRemoteControl_VERSION}} ]]; then
222222 echo "## :us: Change log" >> ${{github.workspace}}/Release.md
223223 echo "" >> ${{github.workspace}}/Release.md
224- get_section ${{github.workspace}}/ChangeLog.log >> ${{github.workspace}}/Release.md
224+ get_section ${{github.workspace}}/ChangeLog.md >> ${{github.workspace}}/Release.md
225225 echo "" >> ${{github.workspace}}/Release.md
226226 fi
227227 fi
@@ -308,7 +308,11 @@ jobs:
308308 if : ${{ startsWith(github.ref, 'refs/tags/') }}
309309 continue-on-error : true
310310 run : |
311- gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --notes-file ${{github.workspace}}/Release.md
311+ if [[ $RabbitRemoteControl_VERSION =~ ^v?(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then
312+ gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --notes-file ${{github.workspace}}/Release.md
313+ else
314+ gh release create ${{ github.ref_name }} --prerelease --latest=false --title ${{ github.ref_name }} --notes-file ${{github.workspace}}/Release.md
315+ fi
312316
313317 - name : Upload To Github Release
314318 if : ${{ startsWith(github.ref, 'refs/tags/') }}
0 commit comments