From 8d94287bdc5af03485ed85fee1aab7809dc53566 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Fri, 6 Jan 2023 15:12:53 +0100 Subject: ci: Upload distributions after CI build This change uploads the distributions build from the repository after a successful build to allow for testing of the master branch --- .github/workflows/build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to '.github/workflows/build.yml') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4457cdb4..255815f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ jobs: - name: Build with Gradle uses: gradle/gradle-build-action@v2 with: - arguments: build codeCoverageReport + arguments: build assembleDist codeCoverageReport # Only write to the cache for builds on the 'master' branch. # Builds on other branches will only read existing entries from the cache. cache-read-only: ${{ github.ref != 'refs/heads/master' }} @@ -41,7 +41,7 @@ jobs: check_name: test (Java ${{ matrix.java }}) report_paths: '**/build/test-results/test/TEST-*.xml' github_token: ${{ secrets.GITHUB_TOKEN }} - - name: Upload artifacts + - name: Upload reports if: always() continue-on-error: true # See https://github.com/actions/upload-artifact/issues/270 uses: actions/upload-artifact@v3 @@ -51,6 +51,14 @@ jobs: ./**/build/reports/**/* ./**/build/test-results/**/* retention-days: 5 + - name: Upload build + continue-on-error: true + uses: actions/upload-artifact@v3 + with: + name: build-${{ matrix.os }}-jdk${{ matrix.java }} + path: | + ./**/build/distributions/**/*.zip + retention-days: 5 - name: Upload code coverage uses: codecov/codecov-action@v3 with: -- cgit v1.2.3