diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b2b76e0c..f7963cb7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,17 +18,18 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 - - name: Get Version - id: tool_version + - name: Generate Release Body + id: step1 run: | set ver $(cat bin\setting.ini | findstr version).Split()[2] - echo $ver - echo "::set-output name=version::$ver" - - name: Get last commit SHA - run: echo "::set-output name=sha::$(git rev-parse HEAD)" - - name: Get last commit message - id: commit_message - run: echo "::set-output name=message::$(git log -1 --pretty=%B ${{ steps.get_sha.outputs.sha }})" + echo "Changelog: ```$(git log -1 --pretty=%B $(git rev-parse HEAD))```" > body.md + echo "Build times: ${{ github.run_number }}" >> body.md + echo "Version: $ver" >> body.md + echo "ver=$ver" >> $GITHUB_OUTPUT + echo "Note:If u cannot run it in linux,you may need do ```chmod a+x ./*```" >> body.md + echo "Author: MIO-KITCHEN-TEAM" >> body.md + echo "* MacOS Notice:if you want use brotli,u need "brew install gettext",A few Functions are not support Macos now *" >> body.md + echo "Minimum support: Ubuntu 20.04 (64bit|aarch64),Windows Vista (32bit),Macos Latest(X86_64)" >> body.md - name: Rename Tool # Compress-Archive -Path ./* -DestinationPath ../MIO-KITCHEN-linux-aarch64.zip # move MIO-KITCHEN-linux-aarch64.zip MIO-KITCHEN-${{ steps.tool_version.outputs.version }}-linux-aarch64.zip @@ -48,16 +49,9 @@ jobs: allowUpdates: true omitBodyDuringUpdate: true removeArtifacts: true - name: "MIO-KITCHEN-${{ steps.tool_version.outputs.version }}" + name: "MIO-KITCHEN-${{ steps.step1.outputs.ver }}" tag: "CI_BUILD_${{ github.run_number }}" - body: | - Changelog: ${{ steps.commit_message.outputs.message }} - Build times: ${{ github.run_number }} - Version: ${{ steps.tool_version.outputs.version }} - Note:If u cannot run it in linux,you may need do "chmod a+x ./*" - Author: MIO-KITCHEN-TEAM - * MacOS Notice:if you want use brotli,u need "brew install gettext",A few Functions are not support Macos now * - Minimum support: Ubuntu 20.04 (64bit|aarch64),Windows Vista (32bit),Macos Latest(X86_64) + bodyFile: "body.md" artifacts: "*.zip" build-win: