aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml6
1 files changed, 3 insertions, 3 deletions
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