From a33f3800afab9d1a034a50cd954e5ad60998de36 Mon Sep 17 00:00:00 2001 From: Logan Buesching Date: Thu, 11 Jan 2024 14:48:17 -0500 Subject: [PATCH] Only upload one build. --- .github/workflows/build_test.yml | 7 ++++++- .github/workflows/ci_tests.yml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index a2b255f..f3af32b 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -17,6 +17,10 @@ on: description: Whether to build debug or release configuration of the code type: string default: debug + store_artifacts: + description: Determines whether or not to upload artifacts + type: boolean + default: false jobs: build_test_archive: @@ -35,10 +39,11 @@ jobs: working-directory: ./src run: dotnet build --configuration ${{ inputs.build_configuration }} --no-restore - name: Upload Sage Build + if: ${{ inputs.store_artifacts }} uses: actions/upload-artifact@v3 with: name: SageWebhost - path: Sage.Webhost/bin/${{ inputs.build_configuration }}/net8.0/ + path: ./src/Sage.Webhost/bin/${{ inputs.build_configuration }}/net8.0/ retention-days: 7 - name: Test working-directory: ./src diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index aba0ed1..27ff0c6 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -30,6 +30,7 @@ jobs: with: test_args: --filter TestCategory!="Compatibility" build_configuration: ${{ needs.init.outputs.build_configuration }} + store_artifacts: true build_test_backward_compatibility: uses: ./.github/workflows/build_test.yml needs: init