From 4d1fd7ea76b4ef3b42fc3548ca92532080798e2c Mon Sep 17 00:00:00 2001 From: DLmaster Date: Fri, 6 Sep 2024 19:31:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E8=AF=AD?= =?UTF-8?q?=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/python-app.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index a3ed50f..6a7cd08 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -67,10 +67,15 @@ jobs: - name: Built with pyinstaller run: | pyinstaller -F --version-file res/info.txt -w --icon=res/AUTO_MAA.ico AUTO_MAA.py + - name: Read version + id: read_version + run: | + VERSION=$(head -n 1 更新说明.txt) + echo "::set-output name=version::$VERSION" - name: Upload Artifact uses: actions/upload-artifact@v4 with: - name: "AUTO_MAA_$(head -n 1 更新说明.txt)" + name: AUTO_MAA_${{ steps.read_version.outputs.version }} path: | data/**/* gui/**/* @@ -102,7 +107,7 @@ jobs: NAME="$(head -n 1 更新说明.txt)" TAGNAME="$(head -n 1 更新说明.txt)" CONTENT_MAIN="$(tail -n +2 更新说明.txt)" - CONTENT_TAIL="```本release通过GitHub Actions自动构建```" + CONTENT_TAIL=r"```本release通过GitHub Actions自动构建```" CONTENT="$CONTENT_MAIN\n\n$CONTENT_TAIL" gh release create "$TAGNAME" --target "main" --title "$NAME" --description "$CONTENT" --artifact artifacts/*.{zip,tar.xz} env: