From bdfdcd64a41a9d3ae9ef9d79a5ac22996fc3eece Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Mon, 23 Mar 2026 15:10:39 +0100 Subject: build(ci): optimize artifact handling --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37fef9d..ea22dda 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,7 +89,7 @@ jobs: ./gradlew clean build --warning-mode all - name: Upload Analysis Reports - if: github.event_name == 'workflow_dispatch' + if: failure() uses: actions/upload-artifact@v4 with: name: analysis-reports @@ -342,9 +342,9 @@ jobs: ./gradlew assemble publish - name: Upload Package Artifact - if: always() + if: success() && github.ref_name == 'master' uses: actions/upload-artifact@v4 with: name: ${{ env.PROJECT_NAME }}-${{ env.SHORT_SHA }} path: ${{ env.PROJECT_PACKAGE }} - if-no-files-found: warn \ No newline at end of file + if-no-files-found: warn -- cgit v1.2.3