From 17a83aa97df4233417e20d31d36aa61e976dbebf Mon Sep 17 00:00:00 2001 From: TiejunZhou <50469179+TiejunMS@users.noreply.github.com> Date: Fri, 24 Nov 2023 04:40:51 +0000 Subject: [PATCH] Override duplicated github-pages in artifact --- .github/workflows/regression_template.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/regression_template.yml b/.github/workflows/regression_template.yml index a94990d7..f65b13d0 100644 --- a/.github/workflows/regression_template.yml +++ b/.github/workflows/regression_template.yml @@ -124,15 +124,16 @@ jobs: - name: Prepare GitHub Pages run: >- if [ "${{ inputs.result_affix }}" != "" ]; then + mkdir -p ${{ inputs.cmake_path }}/coverage_report/artifact.tar mv ${{ inputs.cmake_path }}/coverage_report/default_build_coverage \ - ${{ inputs.cmake_path }}/coverage_report/${{ inputs.result_affix }} + ${{ inputs.cmake_path }}/coverage_report/artifact.tar/${{ inputs.result_affix }} fi - name: Upload Code Coverage Artifacts uses: actions/upload-artifact@v3.1.3 if: ${{ inputs.skip_deploy }} with: - name: coverage_report + name: github-pages path: ${{ inputs.cmake_path }}/coverage_report retention-days: 1 @@ -157,13 +158,13 @@ jobs: - uses: actions/download-artifact@v3 if: ${{ inputs.skip_test }} with: - name: coverage_report + name: github-pages - name: Upload Code Coverage Pages uses: actions/upload-pages-artifact@v2.0.0 if: ${{ inputs.skip_test }} with: - path: . + path: artifact.tar - name: Deploy GitHub Pages site id: deployment