Skip to content

Commit

Permalink
Only upload one build.
Browse files Browse the repository at this point in the history
  • Loading branch information
lbuesching committed Jan 11, 2024
1 parent da45f1d commit a33f380
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a33f380

Please sign in to comment.