From 1771fc0c6d0653d02eb0c840d65accc16f4ce411 Mon Sep 17 00:00:00 2001 From: Niklas Rentz <47597619+NiklasRentzCAU@users.noreply.github.com> Date: Fri, 15 Mar 2024 10:52:37 +0100 Subject: [PATCH] Fix GH Actions builds on release branches On release branches, look up the `klighd` instead of the `klighd-snapshots` for the Maven repository. Fixes #163 --- .github/workflows/buildAndTest.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/buildAndTest.yml b/.github/workflows/buildAndTest.yml index 98a4b65de..54072a772 100644 --- a/.github/workflows/buildAndTest.yml +++ b/.github/workflows/buildAndTest.yml @@ -50,12 +50,21 @@ jobs: retention-days: 14 if-no-files-found: error - name: Archive MVN Repository + if: ${{ contains(github.ref, 'releases-') }} uses: actions/upload-artifact@v2 with: name: KLighD MVN Repository path: klighd-snapshots/**/* retention-days: 14 if-no-files-found: error + - name: Archive MVN Release Repository + if: ${{ !contains(github.ref, 'releases-') }} + uses: actions/upload-artifact@v2 + with: + name: KLighD MVN Repository + path: klighd/**/* + retention-days: 14 + if-no-files-found: error - name: Publish Test Report id: test_report if: ${{ !cancelled() }}