From a7c614d86eca33063111b367837066da2db6edb0 Mon Sep 17 00:00:00 2001 From: Sergey Grigoriev Date: Fri, 2 Aug 2024 16:37:35 +0200 Subject: [PATCH] test: build as jobs --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff48be7..df3c7b7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -84,7 +84,7 @@ jobs: run: echo "project_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT - name: Store cache key id: cache_key - run: echo "${{ runner.os }}-mvn-${{ hashFiles('**/pom.xml') }}" >> $GITHUB_OUTPUT + run: echo "${{ hashFiles('**/pom.xml') }}" >> $GITHUB_OUTPUT outputs: project_version: ${{ steps.project_version.outputs.project_version }} cache_key: ${{ steps.cache_key.outputs.cache_key }} @@ -108,7 +108,7 @@ jobs: path: | /home/runner/.m2 /home/runner/work - key: ${{ needs.build.outputs.cache_key }} + key: ${{ runner.os }}-mvn-${{ needs.build.outputs.cache_key }} - name: Publish to Maven Central run: mvn --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true package -P gpg-sign -P nexus-staging @@ -130,6 +130,6 @@ jobs: path: | /home/runner/.m2 /home/runner/work - key: ${{ needs.build.outputs.cache_key }} + key: ${{ runner.os }}-mvn-${{ needs.build.outputs.cache_key }} - name: Publish to GitHub Packages run: mvn --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true package -P gpg-sign -P deploy-github-packages