From 6217e2775dbb52bbf1067f8bbc2cb816d6537284 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Thu, 6 Jan 2022 11:00:36 +0100 Subject: [PATCH 1/3] Fix archive name. --- .github/workflows/{CI snapshot.yml => CI_snapshot.yml} | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename .github/workflows/{CI snapshot.yml => CI_snapshot.yml} (90%) diff --git a/.github/workflows/CI snapshot.yml b/.github/workflows/CI_snapshot.yml similarity index 90% rename from .github/workflows/CI snapshot.yml rename to .github/workflows/CI_snapshot.yml index 66522c9119..cca4cb52ae 100644 --- a/.github/workflows/CI snapshot.yml +++ b/.github/workflows/CI_snapshot.yml @@ -60,10 +60,14 @@ jobs: - name: Build jar with dependencies run: mvn package -pl geoclimate + # Export the last git tag into env. + - name: Export env values + run: echo "VERSION=$(mvn help:evaluate -Dexpression=project.version)" >> $GITHUB_ENV + # Upload the jar with dependencies - name: Archive production artifacts uses: actions/upload-artifact@v2 with: - name: jar with dependencies + name: geoclimate-${{ env.VERSION }} path: | geoclimate/target/geoclimate-*.*.*-SNAPSHOT.jar \ No newline at end of file From 7d887cb63528c45a7f87d9495f1f50c0bdea3b41 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Thu, 6 Jan 2022 11:05:08 +0100 Subject: [PATCH 2/3] Fix workflow. --- .github/workflows/CI_snapshot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI_snapshot.yml b/.github/workflows/CI_snapshot.yml index cca4cb52ae..cc88dc8e5c 100644 --- a/.github/workflows/CI_snapshot.yml +++ b/.github/workflows/CI_snapshot.yml @@ -62,7 +62,7 @@ jobs: # Export the last git tag into env. - name: Export env values - run: echo "VERSION=$(mvn help:evaluate -Dexpression=project.version)" >> $GITHUB_ENV + run: echo "VERSION=$(mvn help:evaluate -Dexpression=project.version)" >> $GITHUB_ENV # Upload the jar with dependencies - name: Archive production artifacts From bdc541e3a3cfd78bcecad3664ac70b250e04e57f Mon Sep 17 00:00:00 2001 From: BuildTools Date: Thu, 6 Jan 2022 11:27:36 +0100 Subject: [PATCH 3/3] Add cache m2 --- .github/workflows/CI_snapshot.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI_snapshot.yml b/.github/workflows/CI_snapshot.yml index cc88dc8e5c..c9d45de5c3 100644 --- a/.github/workflows/CI_snapshot.yml +++ b/.github/workflows/CI_snapshot.yml @@ -25,6 +25,7 @@ jobs: with: distribution: adopt java-version: 11 + cache: 'maven' server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD @@ -62,7 +63,7 @@ jobs: # Export the last git tag into env. - name: Export env values - run: echo "VERSION=$(mvn help:evaluate -Dexpression=project.version)" >> $GITHUB_ENV + run: echo "VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV # Upload the jar with dependencies - name: Archive production artifacts