From aa794fc4bd0fa9bcc03be43bd52cddb91532d255 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..97afa3cc3 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() }}