From 0139745d0247c898e93269ee60728362b01b1097 Mon Sep 17 00:00:00 2001 From: Liam Sho Date: Mon, 9 May 2022 23:49:38 +0800 Subject: [PATCH] =?UTF-8?q?ci.=20=E9=87=8D=E5=91=BD=E5=90=8D=20Bundle=20?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/maa-dev-build.yaml | 26 +++++++++++-------- src/MeoAssistantBuilder/Tasks/DevBuildTask.cs | 8 +++--- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.github/workflows/maa-dev-build.yaml b/.github/workflows/maa-dev-build.yaml index 124abb8cf9..f4e182094f 100644 --- a/.github/workflows/maa-dev-build.yaml +++ b/.github/workflows/maa-dev-build.yaml @@ -38,20 +38,24 @@ jobs: - name: Run dev build task run: pwsh .\build.ps1 DevBuild - - name: Upload Artifacts Release - uses: actions/upload-artifact@v3 - with: - name: MaaFull-DevBuild-Release - path: ./artifacts/MaaFull-DevBuild-Release* + - name: Read file name + id: read_path + run: pwsh .\read_path.ps1 ./artifacts MaaBundle - - name: Upload Artifacts RelWithDebInfo + - name: Upload Artifacts 0 uses: actions/upload-artifact@v3 with: - name: MaaFull-DevBuild-RelWithDebInfo - path: ./artifacts/MaaFull-DevBuild-RelWithDebInfo* + name: ${{ steps.read_path.outputs.name_0 }} + path: ${{ steps.read_path.outputs.path_0 }} - - name: Upload Artifacts CICD + - name: Upload Artifacts 1 uses: actions/upload-artifact@v3 with: - name: MaaFull-DevBuild-CICD - path: ./artifacts/MaaFull-DevBuild-CICD* + name: ${{ steps.read_path.outputs.name_1 }} + path: ${{ steps.read_path.outputs.path_1 }} + + - name: Upload Artifacts 2 + uses: actions/upload-artifact@v3 + with: + name: ${{ steps.read_path.outputs.name_2 }} + path: ${{ steps.read_path.outputs.path_2 }} diff --git a/src/MeoAssistantBuilder/Tasks/DevBuildTask.cs b/src/MeoAssistantBuilder/Tasks/DevBuildTask.cs index 0f8d93616b..6b7ce804c7 100644 --- a/src/MeoAssistantBuilder/Tasks/DevBuildTask.cs +++ b/src/MeoAssistantBuilder/Tasks/DevBuildTask.cs @@ -17,11 +17,11 @@ public sealed class DevBuildTask : FrostingTask context.CleanArtifacts(); var (bt, hash) = context.GetBuildInformation(); - var artifact = $"MaaFull-DevBuild-(CONF)-{hash}-{bt}.zip"; + var artifact = $"MaaBundle-DevBuild-(CONF)-{hash}-{bt}.zip"; context.Information($"Dev build of commit {hash} at {bt}"); context.Information("--------------------------------------------------"); - context.Information("2. Build MaaFull with configuration Release"); + context.Information("2. Build MaaBundle with configuration Release"); context.Information("--------------------------------------------------"); context.CleanAll(); @@ -33,7 +33,7 @@ public sealed class DevBuildTask : FrostingTask ZipFile.CreateFromDirectory(releaseOutput, releaseArtifact); context.Information("--------------------------------------------------"); - context.Information("3. Build MaaFull with configuration RelWithDebInfo"); + context.Information("3. Build MaaBundle with configuration RelWithDebInfo"); context.Information("--------------------------------------------------"); context.CleanAll(); @@ -45,7 +45,7 @@ public sealed class DevBuildTask : FrostingTask ZipFile.CreateFromDirectory(releaseDebugOutput, releaseDebugArtifact); context.Information("--------------------------------------------------"); - context.Information("4. Build MaaFull with configuration CICD"); + context.Information("4. Build MaaBundle with configuration CICD"); context.Information("--------------------------------------------------"); context.CleanAll();