Skip to content

Commit

Permalink
Fixed problem with workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ullgren committed Jul 13, 2024
1 parent 6188f5f commit 0215a6c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
id: cache-target
uses: actions/cache@v4
with:
path: target
key: maven-target-${{ github.run.id }}
path: target/
key: maven-target-${{ env.GITHUB_RUN_ID }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
Expand All @@ -37,7 +37,13 @@ jobs:
uses: actions/cache/restore@v4
with:
path: target/
key: maven-target-${{ github.run.id }}
key: maven-target-${{ env.GITHUB_RUN_ID }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy
env:
Expand All @@ -52,7 +58,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: target/
key: maven-target-${{ github.run.id }}
key: maven-target-${{ env.GITHUB_RUN_ID }}
- uses: docker/metadata-action@v3
id: metadata
with:
Expand Down

0 comments on commit 0215a6c

Please sign in to comment.