Skip to content

Commit

Permalink
Update GitHub WorkFile
Browse files Browse the repository at this point in the history
Signed-off-by: ColdWindScholar <3590361911@qq.com>
  • Loading branch information
ColdWindScholar committed Apr 9, 2024
1 parent d9c5857 commit 3dc7efc
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 3dc7efc

Please sign in to comment.